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 8dad11c commit f5fe54fCopy full SHA for f5fe54f
flang/lib/Optimizer/Transforms/AddDebugInfo.cpp
@@ -131,7 +131,7 @@ bool AddDebugInfoPass::createCommonBlockGlobal(
131
symbolTable->lookup<fir::GlobalOp>(sym.getRootReference())) {
132
133
unsigned line = getLineFromLoc(global.getLoc());
134
- llvm::StringRef commonName(sym.getRootReference().str());
+ llvm::StringRef commonName(sym.getRootReference());
135
// FIXME: We are trying to extract the name of the common block from the
136
// name of the global. As part of mangling, GetCommonBlockObjectName can
137
// add a trailing _ in the name of that global. The demangle function
0 commit comments