Bug ID: 43012
           Summary: Assertion: debug info must have a !dbg location with
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++

Created attachment 22379

This test case:

// RUN: %clang -cc1 -emit-llvm %s -gcodeview -debug-info-kind=limited

struct 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@UB@@@@QEAA@XZ"(%struct.c*
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.
llvm-bugs mailing list

Reply via email to