From f8f167320d82b0cd10a71341e4c116605caa9220 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 4 May 2009 17:25:21 +0000 Subject: [PATCH] Use true instead of 1 for a boolean value. And fix a copy+pasto in a comment. llvm-svn: 70882 --- lib/VMCore/Value.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index 35c8ccfae65..3af161fa08b 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -406,8 +406,8 @@ Value *Value::DoPHITranslation(const BasicBlock *CurBB, typedef DenseMap ValueHandlesTy; static ManagedStatic 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.