We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52c8159 commit 1f4618cCopy full SHA for 1f4618c
clang/lib/CodeGen/CGExprConstant.cpp
@@ -1883,7 +1883,6 @@ llvm::Constant *ConstantEmitter::tryEmitPrivateForVarInit(const VarDecl &D) {
1883
1884
// Try to emit the initializer. Note that this can allow some things that
1885
// are not allowed by tryEmitPrivateForMemory alone.
1886
- // Bail out on constexpr-unknown values since they are invalid in CodeGen.
1887
if (APValue *value = D.evaluateValue()) {
1888
assert(!value->allowConstexprUnknown() &&
1889
"Constexpr unknown values are not allowed in CodeGen");
0 commit comments