https://bugs.llvm.org/show_bug.cgi?id=34235
Bug ID: 34235
Summary: Assertion failed: (!V->hasBrokenDebugInfo() && "Module
contains invalid debug info"), function doFinalization
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: stephan.bergmann.second...@googlemail.com
CC: llvm-bugs@lists.llvm.org
At least with recent Clang trunk on macOS:
> $ clang-6.0 --version
> clang version 6.0.0 (http://llvm.org/git/clang.git
> 95b9e6248e220bddf2737f341bc397623cf91dc2) (http://llvm.org/git/llvm.git
> b29118b50cc6a4d1229ee774273c03107e6bd7a4)
> Target: x86_64-apple-darwin16.7.0
> Thread model: posix
> InstalledDir: /Users/stephan/Software/llvm/inst/bin
>
> $ cat test.cc
> struct S {
> void f1(bool);
> void f2();
> };
> struct T { ~T(); };
> void f();
> void S::f1(bool b) {
> T t;
> if (b) f2();
> else f2();
> }
> void S::f2() { f(); }
>
> $ clang-6.0 -cc1 -triple x86_64-apple-macosx10.11.0 -emit-obj
> -debug-info-kind=standalone -O1 -fexceptions test.cc
> inlinable function call in a function with debug info must have a !dbg
> location
> invoke void @_ZN1S2f2Ev(%struct.S* undef)
> to label %if.end unwind label %lpad
> inlinable function call in a function with debug info must have a !dbg
> location
> invoke void @_ZN1S2f2Ev(%struct.S* undef)
> to label %if.end unwind label %lpad
> Assertion failed: (!V->hasBrokenDebugInfo() && "Module contains invalid debug
> info"), function doFinalization, file
> /Users/stephan/Software/llvm/src/lib/IR/Verifier.cpp, line 4681.
> 0 clang-6.0 0x00000001096d2958
> llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
> 1 clang-6.0 0x00000001096d18a6 llvm::sys::RunSignalHandlers()
> + 86
> 2 clang-6.0 0x00000001096d2f19 SignalHandler(int) + 361
> 3 libsystem_platform.dylib 0x00007fffdce52b3a _sigtramp + 26
> 4 libsystem_platform.dylib 0x00007fb936c49cf8 _sigtramp + 1507815896
> 5 libsystem_c.dylib 0x00007fffdccd7420 abort + 129
> 6 libsystem_c.dylib 0x00007fffdcc9e893 basename_r + 0
> 7 clang-6.0 0x00000001091f5229 (anonymous
> namespace)::VerifierLegacyPass::doFinalization(llvm::Module&) + 185
> 8 clang-6.0 0x0000000109187c80
> llvm::FPPassManager::doFinalization(llvm::Module&) + 80
> 9 clang-6.0 0x00000001091880fd
> llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1069
> 10 clang-6.0 0x00000001098c4e96
> clang::EmitBackendOutput(clang::DiagnosticsEngine&,
> clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
> clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
> const&, llvm::Module*, clang::BackendAction,
> std::__1::unique_ptr<llvm::raw_pwrite_stream,
> std::__1::default_delete<llvm::raw_pwrite_stream> >) + 15814
> 11 clang-6.0 0x0000000109ad3b0e
> clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 910
> 12 clang-6.0 0x000000010a438252 clang::ParseAST(clang::Sema&,
> bool, bool) + 466
> 13 clang-6.0 0x0000000109d219fc
> clang::FrontendAction::Execute() + 76
> 14 clang-6.0 0x0000000109cdf5d1
> clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1233
> 15 clang-6.0 0x0000000109d7e106
> clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4918
> 16 clang-6.0 0x0000000107ff1be9 cc1_main(llvm::ArrayRef<char
> const*>, char const*, void*) + 1401
> 17 clang-6.0 0x0000000107fefe76 main + 10374
> 18 libdyld.dylib 0x00007fffdcc43235 start + 1
> Stack dump:
> 0. Program arguments: clang-6.0 -cc1 -triple x86_64-apple-macosx10.11.0
> -emit-obj -debug-info-kind=standalone -O1 -fexceptions test.cc
> 1. <eof> parser at end of file
> 2. Code generation
> Abort trap: 6
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs