Otherwise, the debug info is incorrect. On its own, this is mostly harmless, but safe-stack also later inlines the call to __safestack_pointer_address, which leads to debug info with the wrong scope, which eventually causes an assertion failure (and incorrect debug info in release mode).
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/CodeGen/SafeStack.cpp | ||
---|---|---|
781 ↗ | (On Diff #161849) | Should this be checked in module verifier? |
782 ↗ | (On Diff #161849) | In ASan we do this: if (auto SP = F.getSubprogram()) EntryDebugLocation = DebugLoc::get(SP->getScopeLine(), 0, SP); Is that better? I think it will point to the opening curling bracket of the function instead of line 0. |
Comment Actions
(Please add a comment "LGTM" when you accept a patch; otherwise, Phabricator doesn't send a notification to llvm-commits.)
Comment Actions
LGTM
How interesting, "accept revision" goes to reviewers only, not to the mailing list.