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 | 51fcb170b42e0f1fc2000e8d8495cacf4917c87c (patch) | |
tree | a92150be952770949a1c3906c6255a1c0d9e319b /lib | |
parent | e765305d65e2604d7f7ce202ffdfd4b6c3adb966 (diff) | |
download | external_llvm-51fcb170b42e0f1fc2000e8d8495cacf4917c87c.zip external_llvm-51fcb170b42e0f1fc2000e8d8495cacf4917c87c.tar.gz external_llvm-51fcb170b42e0f1fc2000e8d8495cacf4917c87c.tar.bz2 |
I love how using out of scope variables is not an error with GCC, no really I do.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/MemoryDependenceAnalysis.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 7c00a6c..9dad8bc 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/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(); |