Silence unused var warning in NDEBUG build
authorReid Kleckner <rnk@google.com>
Mon, 29 Jun 2020 18:39:49 +0000 (11:39 -0700)
committerReid Kleckner <rnk@google.com>
Mon, 29 Jun 2020 18:40:49 +0000 (11:40 -0700)
llvm/lib/IR/Function.cpp

index a79301b..78092cd 100644 (file)
@@ -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;
 }