[llvm] 6d01a94 - Silence unused var warning in NDEBUG build
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 29 11:40:56 PDT 2020
Author: Reid Kleckner
Date: 2020-06-29T11:40:49-07:00
New Revision: 6d01a9419351b8ff63b520fd86148795e0d9f381
URL: https://github.com/llvm/llvm-project/commit/6d01a9419351b8ff63b520fd86148795e0d9f381
DIFF: https://github.com/llvm/llvm-project/commit/6d01a9419351b8ff63b520fd86148795e0d9f381.diff
LOG: Silence unused var warning in NDEBUG build
Added:
Modified:
llvm/lib/IR/Function.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp
index a79301b76ba5..78092cd7077d 100644
--- 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;
}
More information about the llvm-commits
mailing list