[llvm] r251845 - [SimplifyLibCalls] Merge two if statements. NFC.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 2 14:33:26 PST 2015


Author: davide
Date: Mon Nov  2 16:33:26 2015
New Revision: 251845

URL: http://llvm.org/viewvc/llvm-project?rev=251845&view=rev
Log:
[SimplifyLibCalls] Merge two if statements. NFC.

Modified:
    llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp

Modified: llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp?rev=251845&r1=251844&r2=251845&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp Mon Nov  2 16:33:26 2015
@@ -1591,10 +1591,7 @@ Value *LibCallSimplifier::optimizeErrorR
 }
 
 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)




More information about the llvm-commits mailing list