[llvm] ce4acb0 - Avoid unused variable warning in Release builds
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 6 07:25:46 PDT 2021
Author: Benjamin Kramer
Date: 2021-04-06T16:25:19+02:00
New Revision: ce4acb01b315b74e04da83d89304bd159b31dadd
URL: https://github.com/llvm/llvm-project/commit/ce4acb01b315b74e04da83d89304bd159b31dadd
DIFF: https://github.com/llvm/llvm-project/commit/ce4acb01b315b74e04da83d89304bd159b31dadd.diff
LOG: Avoid unused variable warning in Release builds
Added:
Modified:
llvm/lib/Transforms/Utils/LoopUtils.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 7f1bbeb34d14..19d9e82dbf03 100644
--- a/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -1073,8 +1073,8 @@ Value *llvm::createTargetReduction(IRBuilderBase &B,
Value *llvm::createOrderedReduction(IRBuilderBase &B,
RecurrenceDescriptor &Desc, Value *Src,
Value *Start) {
- auto Kind = Desc.getRecurrenceKind();
- assert(Kind == RecurKind::FAdd && "Unexpected reduction kind");
+ assert(Desc.getRecurrenceKind() == RecurKind::FAdd &&
+ "Unexpected reduction kind");
assert(Src->getType()->isVectorTy() && "Expected a vector type");
assert(!Start->getType()->isVectorTy() && "Expected a scalar type");
More information about the llvm-commits
mailing list