Skip to content

Commit 49f8a44

Browse files
committed
[flang] Change uniqueCGIdent separator from . to X (llvm#71338)
TODO: Include additional changes to unit tests
1 parent e640960 commit 49f8a44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/lib/Optimizer/Builder/FIRBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -959,13 +959,13 @@ std::string fir::factory::uniqueCGIdent(llvm::StringRef prefix,
959959
llvm::SmallString<32> str;
960960
llvm::MD5::stringifyResult(result, str);
961961
std::string hashName = prefix.str();
962-
hashName.append(".").append(str.c_str());
962+
hashName.append("X").append(str.c_str());
963963
return fir::NameUniquer::doGenerated(hashName);
964964
}
965965
// "Short" identifiers use a reversible hex string
966966
std::string nm = prefix.str();
967967
return fir::NameUniquer::doGenerated(
968-
nm.append(".").append(llvm::toHex(name)));
968+
nm.append("X").append(llvm::toHex(name)));
969969
}
970970

971971
mlir::Value fir::factory::locationToFilename(fir::FirOpBuilder &builder,

0 commit comments

Comments
 (0)