diff options
author | Chris Lattner <sabre@nondot.org> | 2008-12-07 00:39:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-12-07 00:39:19 +0000 |
commit | cb7c6e0c46e803699af91e9e94f243ac9e77de3f (patch) | |
tree | b29cc3ee1ab784bd1e00153954f86ea36371db4c | |
parent | 51fcb170b42e0f1fc2000e8d8495cacf4917c87c (diff) | |
download | external_llvm-cb7c6e0c46e803699af91e9e94f243ac9e77de3f.zip external_llvm-cb7c6e0c46e803699af91e9e94f243ac9e77de3f.tar.gz external_llvm-cb7c6e0c46e803699af91e9e94f243ac9e77de3f.tar.bz2 |
rename some variables for consistency
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60644 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/MemoryDependenceAnalysis.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 9dad8bc..5a6db31 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -118,14 +118,14 @@ getDependencyFrom(Instruction *QueryInst, BasicBlock::iterator ScanIt, Value *MemPtr = 0; uint64_t MemSize = 0; - if (StoreInst *S = dyn_cast<StoreInst>(QueryInst)) { + if (StoreInst *SI = 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()) + if (SI->isVolatile()) return MemDepResult::getClobber(--ScanIt); - MemPtr = S->getPointerOperand(); - MemSize = TD->getTypeStoreSize(S->getOperand(0)->getType()); + MemPtr = SI->getPointerOperand(); + MemSize = TD->getTypeStoreSize(SI->getOperand(0)->getType()); } 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. @@ -134,8 +134,8 @@ getDependencyFrom(Instruction *QueryInst, BasicBlock::iterator ScanIt, MemPtr = LI->getPointerOperand(); MemSize = TD->getTypeStoreSize(LI->getType()); - } else if (FreeInst* F = dyn_cast<FreeInst>(QueryInst)) { - MemPtr = F->getPointerOperand(); + } else if (FreeInst *FI = dyn_cast<FreeInst>(QueryInst)) { + MemPtr = FI->getPointerOperand(); // FreeInsts erase the entire structure, not just a field. MemSize = ~0UL; } else if (isa<CallInst>(QueryInst) || isa<InvokeInst>(QueryInst)) { |