-
Notifications
You must be signed in to change notification settings - Fork 0
constexpr auto causes Assertion failed: (!V->hasBrokenDebugInfo() && "Module contains invalid debug info"), function doFinalization, file /Users/thakis/src/llvm-rw/lib/IR/Verifier.cpp, line 4435. #29117
Comments
|
+dblaikie 'cause debug info |
|
|
Hey Duncan, looks like you added this check in r233389 - any idea why? Looks like it's reasonable/possible that a global variable would be initialized with a global function. |
|
|
Duncan: Are you removing the assert / adding a test? |
|
|
Friendly ping :-) |
|
Duncan: Ping? |
1 similar comment
|
Duncan: Ping? |
|
Building ToT now so I can try to reproduce. |
|
|
Had the fix (hadn't actually built against ToT before, used a clang from the weekend). Tried to rebase, and then hit a conflict with r281284. I'm not sure what happens now for this testcase (rebuilding at real ToT), but DIGlobalVariable will certainly never reference a Function... +pcc: can an llvm::Function have multiple !dbg attachments? Can one of them be a DIGlobalVariable? |
|
Attached |
|
|
|
|
|
|
|
|
If doing the Right Thing is difficult (or maybe not even expressible in dwarf), can we do something Not Right That At Least Doesn't Crash in the meantime? |
|
Is this still an issue or something that got fixed in the meantime? |
|
pcc fixed it in r281284. |
pr29122-before-r281284.patch(3209 bytes, text/plain)The text was updated successfully, but these errors were encountered: