Skip to content

Commit f5fe54f

Browse files
committed
Remove an unnecessary str() call.
1 parent 8dad11c commit f5fe54f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Optimizer/Transforms/AddDebugInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ bool AddDebugInfoPass::createCommonBlockGlobal(
131131
symbolTable->lookup<fir::GlobalOp>(sym.getRootReference())) {
132132

133133
unsigned line = getLineFromLoc(global.getLoc());
134-
llvm::StringRef commonName(sym.getRootReference().str());
134+
llvm::StringRef commonName(sym.getRootReference());
135135
// FIXME: We are trying to extract the name of the common block from the
136136
// name of the global. As part of mangling, GetCommonBlockObjectName can
137137
// add a trailing _ in the name of that global. The demangle function

0 commit comments

Comments
 (0)