Skip to content

Commit 4e7b363

Browse files
committed
Start suffixes at 1 to match LLVM
1 parent b6b9d31 commit 4e7b363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ std::string CIRGenModule::getUniqueGlobalName(const std::string &baseName) {
807807
// it as is and start a counter for this base name.
808808
auto it = cgGlobalNames.find(baseName);
809809
if (it == cgGlobalNames.end()) {
810-
cgGlobalNames[baseName] = 0;
810+
cgGlobalNames[baseName] = 1;
811811
return baseName;
812812
}
813813

0 commit comments

Comments
 (0)