Instead of always displaying the mangled name, try to do better
and get something closer to regular functions.
Details
Details
- Reviewers
arphaman - Commits
- rGdc9bf8fab636: Improve handling of __FUNCTION__ and other predefined expression for Objective…
rG26168ad5c50f: Improve handling of __FUNCTION__ and other predefined expression for Objective…
rC287085: Improve handling of __FUNCTION__ and other predefined expression for Objective…
rC287039: Improve handling of __FUNCTION__ and other predefined expression for Objective…
rL287085: Improve handling of __FUNCTION__ and other predefined expression for Objective…
rL287039: Improve handling of __FUNCTION__ and other predefined expression for Objective…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang/lib/AST/Expr.cpp | ||
---|---|---|
531 ↗ | (On Diff #77550) | I think it's possible to avoid the braces by simplifying down to something like this: if (auto *DCFunc = dyn_cast<FunctionDecl>(DC)) Out << ComputeName(IT, DCFunc) << "_block_invoke"; else // For nested blocks, propagate up to the parent. Out << ComputeName(IT, cast<BlockDecl>(DC)); |
clang/lib/CodeGen/CGExpr.cpp | ||
2325 ↗ | (On Diff #77550) | discriminator should be Discriminator |
2327 ↗ | (On Diff #77550) | != 0 is redundant here |
clang/test/CodeGen/block-with-perdefinedexpr.cpp | ||
66 ↗ | (On Diff #77550) | I think you should maybe add/change one of the tests to be a block inside of a lambda. |
Comment Actions
This is probably caused by this patch
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/649/steps/check-clang%20msan/logs/stdio