mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[MemDep] Cleanup return after else & use auto
. NFC.
llvm-svn: 306255
This commit is contained in:
parent
1714e72712
commit
917627da76
@ -310,11 +310,11 @@ unsigned MemoryDependenceResults::getLoadLoadClobberFullWidthSize(
|
||||
}
|
||||
|
||||
static bool isVolatile(Instruction *Inst) {
|
||||
if (LoadInst *LI = dyn_cast<LoadInst>(Inst))
|
||||
if (auto *LI = dyn_cast<LoadInst>(Inst))
|
||||
return LI->isVolatile();
|
||||
else if (StoreInst *SI = dyn_cast<StoreInst>(Inst))
|
||||
if (auto *SI = dyn_cast<StoreInst>(Inst))
|
||||
return SI->isVolatile();
|
||||
else if (AtomicCmpXchgInst *AI = dyn_cast<AtomicCmpXchgInst>(Inst))
|
||||
if (auto *AI = dyn_cast<AtomicCmpXchgInst>(Inst))
|
||||
return AI->isVolatile();
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user