[llvm] 23a887b - Fix unused variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 16 05:03:53 PST 2020
Author: Simon Pilgrim
Date: 2020-01-16T13:02:40Z
New Revision: 23a887b0dd48639716b78a1c9ca665df49f64b2e
URL: https://github.com/llvm/llvm-project/commit/23a887b0dd48639716b78a1c9ca665df49f64b2e
DIFF: https://github.com/llvm/llvm-project/commit/23a887b0dd48639716b78a1c9ca665df49f64b2e.diff
LOG: Fix unused variable warning. NFCI.
Added:
Modified:
llvm/lib/Transforms/Utils/AMDGPUEmitPrintf.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/AMDGPUEmitPrintf.cpp b/llvm/lib/Transforms/Utils/AMDGPUEmitPrintf.cpp
index 976956ca4a09..84a66e1e96d2 100644
--- a/llvm/lib/Transforms/Utils/AMDGPUEmitPrintf.cpp
+++ b/llvm/lib/Transforms/Utils/AMDGPUEmitPrintf.cpp
@@ -55,7 +55,7 @@ static Value *fitArgInto64Bits(IRBuilder<> &Builder, Value *Arg) {
return Builder.CreateBitCast(Arg, Int64Ty);
}
- if (auto PtrTy = dyn_cast<PointerType>(Ty)) {
+ if (isa<PointerType>(Ty)) {
return Builder.CreatePtrToInt(Arg, Int64Ty);
}
More information about the llvm-commits
mailing list