[llvm] r302480 - [InstNamer] Don't check type of arguments (they're never void)
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Mon May 8 16:18:40 PDT 2017
Author: sanjoy
Date: Mon May 8 18:18:39 2017
New Revision: 302480
URL: http://llvm.org/viewvc/llvm-project?rev=302480&view=rev
Log:
[InstNamer] Don't check type of arguments (they're never void)
Modified:
llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp
Modified: llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp?rev=302480&r1=302479&r2=302480&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp Mon May 8 18:18:39 2017
@@ -34,7 +34,7 @@ namespace {
bool runOnFunction(Function &F) override {
for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end();
AI != AE; ++AI)
- if (!AI->hasName() && !AI->getType()->isVoidTy())
+ if (!AI->hasName())
AI->setName("arg");
for (BasicBlock &BB : F) {
More information about the llvm-commits
mailing list