mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-05 11:46:42 +00:00
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
e87ad778e1
commit
6ad184e6af
@ -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…
x
Reference in New Issue
Block a user