[PATCH] D156453: [clang][Interp] Create only globals when initializing a global variable
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 4 10:05:39 PDT 2023
tbaeder added a comment.
It gets interpreted as a constant expression in `Sema::CheckCompleteVariableInitialization()`:
* #0: Context.cpp:73 clang::interp::Context::evaluateAsInitializer(this=0x0000608000005d20, Parent=0x00007fff6dc2a8d0, VD=0x0000621000073b48, Result=0x0000621000099e90)
#1: ExprConstant.cpp:15600 clang::Expr::EvaluateAsInitializer(this=0x0000621000099e40, Value=0x0000621000099e90, Ctx=0x000062a000000200, VD=0x0000621000073b48, Notes=0x00007fff6deac850, IsConstantInitialization=true) const
#2: Decl.cpp:2555 clang::VarDecl::evaluateValueImpl(this=0x0000621000073b48, Notes=0x00007fff6deac850, IsConstantInitialization=true) const
#3: Decl.cpp:2626 clang::VarDecl::checkForConstantInitialization(this=0x0000621000073b48, Notes=0x00007fff6deac850) const
#4: SemaDecl.cpp:14399 clang::Sema::CheckCompleteVariableDeclaration(this=0x000062900000a200, var=0x0000621000073b48)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156453/new/
https://reviews.llvm.org/D156453
More information about the cfe-commits
mailing list