From: Arthur Eubanks Date: Mon, 14 Jun 2021 18:39:12 +0000 (-0700) Subject: Move some code under NDEBUG from D103135 X-Git-Tag: llvmorg-14-init~3994 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc8d32ae7d94c96b9280df40eb3507eae79c7101;p=platform%2Fupstream%2Fllvm.git Move some code under NDEBUG from D103135 --- diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 7c4073c..fef6b91 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");