[LLVMbugs] [Bug 17655] New: [-cxx-abi microsoft] Assertion `FD->isUsed() && "Sema didn't mark implicit function as used!"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 22 10:19:58 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: rnk at google.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131022/8a5e7c9b/attachment.html>


More information about the llvm-bugs mailing list