[llvm-commits] [poolalloc] r131675 - /poolalloc/trunk/lib/DSA/DynCount.cpp

Arushi Aggarwal aggarwa4 at illinois.edu
Thu May 19 13:56:34 PDT 2011


Author: aggarwa4
Date: Thu May 19 15:56:34 2011
New Revision: 131675

URL: http://llvm.org/viewvc/llvm-project?rev=131675&view=rev
Log:
Rename variables to avoid ambiguity with llvm::Value

Modified:
    poolalloc/trunk/lib/DSA/DynCount.cpp

Modified: poolalloc/trunk/lib/DSA/DynCount.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DynCount.cpp?rev=131675&r1=131674&r2=131675&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DynCount.cpp (original)
+++ poolalloc/trunk/lib/DSA/DynCount.cpp Thu May 19 15:56:34 2011
@@ -50,9 +50,9 @@
   //
   LLVMContext & Context = Counter->getParent()->getContext();
   ConstantInt * One = ConstantInt::get (Type::getInt64Ty(Context), 1); 
-  LoadInst * Value = new LoadInst (Counter, "count", LI);
+  LoadInst * OldValue = new LoadInst (Counter, "count", LI);
   Instruction * NewValue = BinaryOperator::Create (BinaryOperator::Add,
-                                                   Value,
+                                                   OldValue,
                                                    One,
                                                    "count",
                                                    LI);
@@ -66,9 +66,9 @@
   //
   LLVMContext & Context = Counter->getParent()->getContext();
   ConstantInt * One = ConstantInt::get (Type::getInt64Ty(Context), 1); 
-  LoadInst * Value = new LoadInst (Counter, "count", SI);
+  LoadInst * OldValue = new LoadInst (Counter, "count", SI);
   Instruction * NewValue = BinaryOperator::Create (BinaryOperator::Add,
-                                                   Value,
+                                                   OldValue,
                                                    One,
                                                    "count",
                                                    SI);





More information about the llvm-commits mailing list