summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-05-04 17:25:21 +0000
committerDan Gohman <gohman@apple.com>2009-05-04 17:25:21 +0000
commit3f02595048d2e1fb952b6e1c85a1f40c6fa3dccc (patch)
tree85a5b85e1471960b323b32f76d2395edb9bdc73c /llvm/lib/VMCore
parentd05ae1af8af8b5ec92a9090bad82aa028c6ec047 (diff)
downloadbcm5719-llvm-3f02595048d2e1fb952b6e1c85a1f40c6fa3dccc.tar.gz
bcm5719-llvm-3f02595048d2e1fb952b6e1c85a1f40c6fa3dccc.zip
Use true instead of 1 for a boolean value. And fix a copy+pasto
in a comment. llvm-svn: 70882
Diffstat (limited to 'llvm/lib/VMCore')
-rw-r--r--llvm/lib/VMCore/Value.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp
index 35c8ccfae65..3af161fa08b 100644
--- a/llvm/lib/VMCore/Value.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud