http://llvm.org/bugs/show_bug.cgi?id=17655

            Bug ID: 17655
           Summary: [-cxx-abi microsoft] Assertion `FD->isUsed() && "Sema
                    didn't mark implicit function as used!"' failed
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 11406
  --> http://llvm.org/bugs/attachment.cgi?id=11406&action=edit
sema-mark-used.cpp

This is probably distinct from http://llvm.org/bugs/show_bug.cgi?id=10480, but
it trips the same assertion.  I bet it has to do with our handling of complete
vs. base dtors in GetAddrOfCXXDestructor with the MS C++ ABI.

clang: ../tools/clang/lib/CodeGen/CodeGenModule.cpp:1392: llvm::Constant
*clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef,
llvm::Type *, clang::GlobalDecl, bool, llvm::AttributeSet): Assertion
`FD->isUsed() && "Sema didn't mark implicit function as used!"' failed.

clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction()
clang::CodeGen::CodeGenModule::GetAddrOfCXXDestructor()
clang::CodeGen::CodeGenFunction::EmitCXXDestructorCall()
clang::CodeGen::CodeGenFunction::emitDestroy()
clang::CodeGen::CodeGenFunction::PopCleanupBlock()
clang::CodeGen::CodeGenFunction::PopCleanupBlocks()
clang::CodeGen::CodeGenFunction::FinishFunction()
clang::CodeGen::CodeGenFunction::GenerateThunk()
clang::CodeGen::CodeGenVTables::emitThunk()
clang::CodeGen::CodeGenVTables::CreateVTableInitializer()
clang::CodeGen::CodeGenModule::EmitDeferredVTables()
clang::CodeGen::CodeGenModule::EmitDeferred()
clang::CodeGen::CodeGenModule::Release()
clang::ParseAST()
clang::CodeGenAction::ExecuteAction()
clang::FrontendAction::Execute()
clang::CompilerInstance::ExecuteAction()
clang::ExecuteCompilerInvocation()
cc1_main()

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to