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:
a450e0d
)
Silence unused var warning in NDEBUG build
author
Reid Kleckner
<rnk@google.com>
Mon, 29 Jun 2020 18:39:49 +0000
(11:39 -0700)
committer
Reid Kleckner
<rnk@google.com>
Mon, 29 Jun 2020 18:40:49 +0000
(11:40 -0700)
llvm/lib/IR/Function.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Function.cpp
b/llvm/lib/IR/Function.cpp
index
a79301b
..
78092cd
100644
(file)
--- a/
llvm/lib/IR/Function.cpp
+++ b/
llvm/lib/IR/Function.cpp
@@
-1457,8
+1457,8
@@
Optional<Function *> Intrinsic::remangleIntrinsicFunction(Function *F) {
auto NewDecl = Intrinsic::getDeclaration(F->getParent(), ID, ArgTys);
NewDecl->setCallingConv(F->getCallingConv());
- FunctionType *FTy = F->getFunctionType();
-
assert(NewDecl->getFunctionType() == FTy &&
"Shouldn't change the signature");
+ assert(NewDecl->getFunctionType() == F->getFunctionType() &&
+
"Shouldn't change the signature");
return NewDecl;
}