[llvm-bugs] [Bug 43012] New: Assertion: debug info must have a !dbg location with repro
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 15 13:33:21 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43012
Bug ID: 43012
Summary: Assertion: debug info must have a !dbg location with
repro
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: alexandre.ganea at ubisoft.com
CC: aprantl at apple.com, blitzrakete at gmail.com,
dgregor at apple.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk,
rnk at google.com
Created attachment 22379
--> https://bugs.llvm.org/attachment.cgi?id=22379&action=edit
repro
This test case:
// RUN: %clang -cc1 -emit-llvm %s -gcodeview -debug-info-kind=limited
struct a {
~a();
};
template <typename b> struct c : a {
c(void (b::*)());
};
struct B {
virtual void e();
};
c<B> *d() { static c<B> f(&B::e); return &f; }
Generates an assertion when compiling Clang with -DLLVM_ENABLE_ASSERTIONS=ON
inlinable function call in a function with debug info must have a !dbg location
call void @"??1?$c at UB@@@@QEAA at XZ"(%struct.c*
@"?f@?1??d@@YAPEAU?$c at UB@@@@XZ at 4U2@A")
fatal error: error in backend: Broken module found, compilation aborted!
>From a distance it seems "!48 = distinct !DISubprogram(name: "`dynamic atexit
destructor for 'f'"" is missing a 'line' entry? (see .ll)
Unless you have time, any suggestions to where should I look?
--
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/20190815/06eef8ee/attachment.html>
More information about the llvm-bugs
mailing list