projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66e2708
)
Move some code under NDEBUG from D103135
author
Arthur Eubanks
<aeubanks@google.com>
Mon, 14 Jun 2021 18:39:12 +0000
(11:39 -0700)
committer
Arthur Eubanks
<aeubanks@google.com>
Mon, 14 Jun 2021 18:39:12 +0000
(11:39 -0700)
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index
7c4073c
..
fef6b91
100644
(file)
--- 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");