[SimplifyLibCalls] Merge two if statements. NFC.
authorDavide Italiano <davide@freebsd.org>
Mon, 2 Nov 2015 22:33:26 +0000 (22:33 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 2 Nov 2015 22:33:26 +0000 (22:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251845 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyLibCalls.cpp

index f992d78..0713ed1 100644 (file)
@@ -1591,10 +1591,7 @@ Value *LibCallSimplifier::optimizeErrorReporting(CallInst *CI, IRBuilder<> &B,
 }
 
 static bool isReportingError(Function *Callee, CallInst *CI, int StreamArg) {
-  if (!ColdErrorCalls)
-    return false;
-
-  if (!Callee || !Callee->isDeclaration())
+  if (!ColdErrorCalls || !Callee || !Callee->isDeclaration())
     return false;
 
   if (StreamArg < 0)