[llvm] 59540b2 - [InstCombine] Fix an "unused variable" warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 27 09:49:42 PDT 2021
Author: Kazu Hirata
Date: 2021-09-27T09:49:32-07:00
New Revision: 59540b29f83cf5b55cba7c41248f1e7d846490be
URL: https://github.com/llvm/llvm-project/commit/59540b29f83cf5b55cba7c41248f1e7d846490be
DIFF: https://github.com/llvm/llvm-project/commit/59540b29f83cf5b55cba7c41248f1e7d846490be.diff
LOG: [InstCombine] Fix an "unused variable" warning
Added:
Modified:
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
index 87750f67d7a3..950d2ab6bc9f 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
@@ -685,6 +685,7 @@ Instruction *InstCombinerImpl::FoldShiftByConstant(Value *Op0, Constant *Op1,
unsigned TypeBits = Ty->getScalarSizeInBits();
assert(!Op1C->uge(TypeBits) &&
"Shift over the type width should have been removed already");
+ (void)TypeBits;
if (Instruction *FoldedShift = foldBinOpIntoSelectOrPhi(I))
return FoldedShift;
More information about the llvm-commits
mailing list