diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-12-07 00:38:27 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-12-07 00:38:27 +0000 |
| commit | e2069a694985f2ab3865b0eeb05664fe63bf3499 (patch) | |
| tree | df0a572950fe3b7500fd5946abd6f1e77a5a1ab8 /llvm/lib/Analysis | |
| parent | 056c090c679b6362e02d4ee7aac4ce2bb0b8bd42 (diff) | |
| download | bcm5719-llvm-e2069a694985f2ab3865b0eeb05664fe63bf3499.tar.gz bcm5719-llvm-e2069a694985f2ab3865b0eeb05664fe63bf3499.zip | |
I love how using out of scope variables is not an error with GCC, no really I do.
llvm-svn: 60643
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index 7c00a6c2f69..9dad8bcf45c 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -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(); |

