As suggested by @efriedma in:
https://reviews.llvm.org/D76096#4370369
Some minor code style fixes as well in
ConstantEmitter::tryEmitPrivateForVarInit.
Paths
| Differential D151572
[clang][ConstantEmitter] have tryEmitPrivate try ConstExprEmitter fast-path first AbandonedPublic Authored by nickdesaulniers on May 26 2023, 10:42 AM.
Details Summary As suggested by @efriedma in: Some minor code style fixes as well in
Diff Detail
Event TimelineComment Actions Did you intentionally skip moving the ConstExprEmitter call in tryEmitPrivateForVarInit? (VarDecl::evaluateValue calls the constant evaluator.) Comment Actions
Yes, I'll do that in a follow up patch as it results in quite a few test failures that I'm looking into now. Triple check my messages on LLVM Discord. ;) nickdesaulniers removed a child revision: D151587: [clang][ConstantEmitter] have tryEmitPrivate[ForVarInit] try ConstExprEmitter fast-path first. Comment ActionsSquashed up into https://reviews.llvm.org/D151587.
Revision Contents
Diff 526131 clang/lib/CodeGen/CGExprConstant.cpp
|