Skip to content

Commit 86a63b2

Browse files
committed
[Metarenamer] Use 'inst' as default name for instructions
Currently we use 'tmp', which is also a keyword for FileCheck. It leads to this annoying warning whenever a script for auto-generation of checks is used. It is especially annoying that it happens to every test affected by metarenamer. Just use another prefix for metarenamed names to avoid this. Differential Revision: https://reviews.llvm.org/D144001 Reviewed By: nikic
1 parent ddc5d40 commit 86a63b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/MetaRenamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void MetaRename(Function &F) {
115115

116116
for (auto &I : BB)
117117
if (!I.getType()->isVoidTy())
118-
I.setName("tmp");
118+
I.setName("inst");
119119
}
120120
}
121121

0 commit comments

Comments
 (0)