https://llvm.org/bugs/show_bug.cgi?id=22921

            Bug ID: 22921
           Summary: missing required field 'name' in MDSubprogram metadata
                    for c++ virtual thunk
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM assembly language parser
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Hi

Not sure whether this is a bug in clang or llvm. LLParser thinks that the
'name' field is required for MDSubprogram metadata for virtual C++ thunks, but
this field is not present, and there is an existing clang test that seems to
suggest that the name field is not intended to be present. Here is the test
(tools/clang/test/CodeGenCXX/debug-info-thunk.cpp):

struct A {
  virtual void f();
};

struct B {
  virtual void f();
};

struct C : A, B {
  virtual void f(); 
};

void C::f() { }

Compile it to a .ll file and then run with opt to get the error.

-- 
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