mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 06:06:52 +00:00
I love how using out of scope variables is not an error with GCC, no really I do.
llvm-svn: 60643
This commit is contained in:
parent
20b7d9667d
commit
e4c5f66b3b
@ -118,7 +118,7 @@ getDependencyFrom(Instruction *QueryInst, BasicBlock::iterator ScanIt,
|
||||
Value *MemPtr = 0;
|
||||
uint64_t MemSize = 0;
|
||||
|
||||
if (StoreInst* S = dyn_cast<StoreInst>(QueryInst)) {
|
||||
if (StoreInst *S = dyn_cast<StoreInst>(QueryInst)) {
|
||||
// If this is a volatile store, don't mess around with it. Just return the
|
||||
// previous instruction as a clobber.
|
||||
if (S->isVolatile())
|
||||
@ -126,10 +126,10 @@ getDependencyFrom(Instruction *QueryInst, BasicBlock::iterator ScanIt,
|
||||
|
||||
MemPtr = S->getPointerOperand();
|
||||
MemSize = TD->getTypeStoreSize(S->getOperand(0)->getType());
|
||||
} else if (LoadInst* LI = dyn_cast<LoadInst>(QueryInst)) {
|
||||
} else if (LoadInst *LI = dyn_cast<LoadInst>(QueryInst)) {
|
||||
// If this is a volatile load, don't mess around with it. Just return the
|
||||
// previous instruction as a clobber.
|
||||
if (S->isVolatile())
|
||||
if (LI->isVolatile())
|
||||
return MemDepResult::getClobber(--ScanIt);
|
||||
|
||||
MemPtr = LI->getPointerOperand();
|
||||
|
Loading…
x
Reference in New Issue
Block a user