Skip to content

Commit 23a887b

Browse files
committed
Fix unused variable warning. NFCI.
1 parent 19c5057 commit 23a887b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/AMDGPUEmitPrintf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static Value *fitArgInto64Bits(IRBuilder<> &Builder, Value *Arg) {
5555
return Builder.CreateBitCast(Arg, Int64Ty);
5656
}
5757

58-
if (auto PtrTy = dyn_cast<PointerType>(Ty)) {
58+
if (isa<PointerType>(Ty)) {
5959
return Builder.CreatePtrToInt(Arg, Int64Ty);
6060
}
6161

0 commit comments

Comments
 (0)