forked from OSchip/llvm-project
Refactor: Simplify boolean conditional return statements in lib/Transforms/Instrumentation
Summary: Use clang-tidy to simplify boolean conditional return statements. Differential Revision: http://reviews.llvm.org/D9996 Patch by Richard (legalize@xmission.com)! llvm-svn: 251318
This commit is contained in:
parent
fff8ccf579
commit
145b0fd2a0
|
@ -908,10 +908,8 @@ static bool isInterestingPointerComparisonOrSubtraction(Instruction *I) {
|
|||
} else {
|
||||
return false;
|
||||
}
|
||||
if (!isPointerOperand(I->getOperand(0)) ||
|
||||
!isPointerOperand(I->getOperand(1)))
|
||||
return false;
|
||||
return true;
|
||||
return isPointerOperand(I->getOperand(0)) &&
|
||||
isPointerOperand(I->getOperand(1));
|
||||
}
|
||||
|
||||
bool AddressSanitizer::GlobalIsLinkerInitialized(GlobalVariable *G) {
|
||||
|
|
Loading…
Reference in New Issue