[llvm] 7d17684 - [CodeExtractor] Fix warning in assert (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 28 07:35:35 PST 2022
Author: Nikita Popov
Date: 2022-01-28T16:33:34+01:00
New Revision: 7d176844d05bf11b32c4379f1422379d3d979a1e
URL: https://github.com/llvm/llvm-project/commit/7d176844d05bf11b32c4379f1422379d3d979a1e
DIFF: https://github.com/llvm/llvm-project/commit/7d176844d05bf11b32c4379f1422379d3d979a1e.diff
LOG: [CodeExtractor] Fix warning in assert (NFC)
Added:
Modified:
llvm/lib/Transforms/Utils/CodeExtractor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
index 24cd5747c5a4..80da1641d611 100644
--- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp
+++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
@@ -857,8 +857,8 @@ Function *CodeExtractor::constructFunction(const ValueSet &inputs,
(ParamTy.size() + AggParamTy.size()) ==
(inputs.size() + outputs.size()) &&
"Number of scalar and aggregate params does not match inputs, outputs");
- assert(StructValues.empty() ||
- AggregateArgs && "Expeced StructValues only with AggregateArgs set");
+ assert((StructValues.empty() || AggregateArgs) &&
+ "Expeced StructValues only with AggregateArgs set");
// Concatenate scalar and aggregate params in ParamTy.
size_t NumScalarParams = ParamTy.size();
More information about the llvm-commits
mailing list