forked from OSchip/llvm-project
[SimplifyLibCalls] Merge two if statements. NFC.
llvm-svn: 251845
This commit is contained in:
parent
5ed60285e0
commit
e84d4da234
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue