From ccb9c3370aea525b09ed0a132bd2adf6c917b566 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 7 Dec 2008 00:39:19 +0000 Subject: rename some variables for consistency llvm-svn: 60644 --- llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index 9dad8bcf45c..5a6db31a784 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/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(QueryInst)) { + if (StoreInst *SI = dyn_cast(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(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(QueryInst)) { - MemPtr = F->getPointerOperand(); + } else if (FreeInst *FI = dyn_cast(QueryInst)) { + MemPtr = FI->getPointerOperand(); // FreeInsts erase the entire structure, not just a field. MemSize = ~0UL; } else if (isa(QueryInst) || isa(QueryInst)) { -- cgit v1.2.3