Skip to content

Commit e4114f9

Browse files
committed
[AttributorAttributes] Remove unused variable [NFC]
gcc warned about it: [232/4788] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/AttributorAttributes.cpp.o ../lib/Transforms/IPO/AttributorAttributes.cpp: In lambda function: ../lib/Transforms/IPO/AttributorAttributes.cpp:12555:17: warning: unused variable 'SI' [-Wunused-variable] 12555 | if (auto *SI = dyn_cast<StoreInst>(Inst)) { | ^~ Fix the warning by removing the variable and turn dyn_cast into isa.
1 parent 23b794f commit e4114f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/AttributorAttributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12552,7 +12552,7 @@ struct AAAddressSpaceImpl : public AAAddressSpace {
1255212552
return true;
1255312553
if (isa<LoadInst>(Inst))
1255412554
MakeChange(Inst, const_cast<Use &>(U));
12555-
if (auto *SI = dyn_cast<StoreInst>(Inst)) {
12555+
if (isa<StoreInst>(Inst)) {
1255612556
// We only make changes if the use is the pointer operand.
1255712557
if (U.getOperandNo() == 1)
1255812558
MakeChange(Inst, const_cast<Use &>(U));

0 commit comments

Comments
 (0)