From 6d01a9419351b8ff63b520fd86148795e0d9f381 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 29 Jun 2020 11:39:49 -0700 Subject: [PATCH] Silence unused var warning in NDEBUG build --- llvm/lib/IR/Function.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index a79301b..78092cd 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -1457,8 +1457,8 @@ Optional 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; } -- 2.7.4