[SimplifyLibCalls] Merge two if statements. NFC.

llvm-svn: 251845
This commit is contained in:
Davide Italiano 2015-11-02 22:33:26 +00:00
parent 5ed60285e0
commit e84d4da234
1 changed files with 1 additions and 4 deletions

View 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)