aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorasl <asl@91177308-0d34-0410-b5e6-96231b3b80d8>2009-05-04 19:10:38 +0000
committerasl <asl@91177308-0d34-0410-b5e6-96231b3b80d8>2009-05-04 19:10:38 +0000
commit7a969d8c47d8916099ff7a2dcb87cf42137e03c4 (patch)
tree794cb788091fbdd3fcf7fae97e539163b620d1f0 /lib/VMCore
parent025ddd416fefc58576422f092fcb1f6a30c6a632 (diff)
downloadexternal_llvm-7a969d8c47d8916099ff7a2dcb87cf42137e03c4.zip
external_llvm-7a969d8c47d8916099ff7a2dcb87cf42137e03c4.tar.gz
external_llvm-7a969d8c47d8916099ff7a2dcb87cf42137e03c4.tar.bz2
Fix code emission for conditional branches.
Patch by Collin Winter! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70898 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Value.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp
index 35c8ccf..3af161f 100644
--- a/lib/VMCore/Value.cpp
+++ b/lib/VMCore/Value.cpp
@@ -406,8 +406,8 @@ Value *Value::DoPHITranslation(const BasicBlock *CurBB,
typedef DenseMap<Value*, ValueHandleBase*> ValueHandlesTy;
static ManagedStatic<ValueHandlesTy> ValueHandles;
-/// AddToUseList - Add this ValueHandle to the use list for VP, where List is
-/// known to point into the existing use list.
+/// AddToExistingUseList - Add this ValueHandle to the use list for VP, where
+/// List is known to point into the existing use list.
void ValueHandleBase::AddToExistingUseList(ValueHandleBase **List) {
assert(List && "Handle list is null?");
@@ -443,7 +443,7 @@ void ValueHandleBase::AddToUseList() {
ValueHandleBase *&Entry = Handles[VP];
assert(Entry == 0 && "Value really did already have handles?");
AddToExistingUseList(&Entry);
- VP->HasValueHandle = 1;
+ VP->HasValueHandle = true;
// If reallocation didn't happen or if this was the first insertion, don't
// walk the table.