[llvm] cc8d32a - Move some code under NDEBUG from D103135
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 14 11:41:59 PDT 2021
Author: Arthur Eubanks
Date: 2021-06-14T11:39:12-07:00
New Revision: cc8d32ae7d94c96b9280df40eb3507eae79c7101
URL: https://github.com/llvm/llvm-project/commit/cc8d32ae7d94c96b9280df40eb3507eae79c7101
DIFF: https://github.com/llvm/llvm-project/commit/cc8d32ae7d94c96b9280df40eb3507eae79c7101.diff
LOG: Move some code under NDEBUG from D103135
Added:
Modified:
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 7c4073c2add0..fef6b917b32b 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -3848,8 +3848,10 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
unsigned ModuleMDLoaderSize = MDLoader->size();
// Add all the function arguments to the value table.
+#ifndef NDEBUG
unsigned ArgNo = 0;
FunctionType *FTy = FunctionTypes[F];
+#endif
for (Argument &I : F->args()) {
assert(I.getType() == FTy->getParamType(ArgNo++) &&
"Incorrect fully specified type for Function Argument");
More information about the llvm-commits
mailing list