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 71dc79e commit 4037877Copy full SHA for 4037877
clang/lib/CIR/CodeGen/CIRGenExpr.cpp
@@ -2379,9 +2379,9 @@ LValue CIRGenFunction::emitPredefinedLValue(const PredefinedExpr *e) {
2379
auto fn = cast<cir::FuncOp>(curFn);
2380
StringRef fnName = fn.getName();
2381
fnName.consume_front("\01");
2382
- StringRef nameItems[] = {PredefinedExpr::getIdentKindName(e->getIdentKind()),
2383
- fnName};
2384
- std::string gvName = llvm::join(nameItems, nameItems + 2, ".");
+ std::array<StringRef, 2> nameItems = {
+ PredefinedExpr::getIdentKindName(e->getIdentKind()), fnName};
+ std::string gvName = llvm::join(nameItems, ".");
2385
if (isa_and_nonnull<BlockDecl>(curCodeDecl))
2386
cgm.errorNYI(e->getSourceRange(), "predefined lvalue in block");
2387
0 commit comments