diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-09-19 15:13:20 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-09-19 15:13:20 +0000 |
commit | 8be491b7709c4c36b6849a618e6bf8e96fceb670 (patch) | |
tree | 55a17319586a5d0b4c6c2a2596b594e0eed5a35c /lib/VMCore/Value.cpp | |
parent | a7e3013a8ed559b17367e82788a1c52c13ee134d (diff) | |
download | external_llvm-8be491b7709c4c36b6849a618e6bf8e96fceb670.zip external_llvm-8be491b7709c4c36b6849a618e6bf8e96fceb670.tar.gz external_llvm-8be491b7709c4c36b6849a618e6bf8e96fceb670.tar.bz2 |
backing out my last commit, it was not intended to go on the trunk
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Value.cpp')
-rw-r--r-- | lib/VMCore/Value.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index a5e0ff3..bc5b7a9 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -34,7 +34,7 @@ static inline const Type *checkType(const Type *Ty) { Value::Value(const Type *ty, unsigned scid) : SubclassID(scid), SubclassData(0), VTy(checkType(ty)), - UseList(Use::nilUse(this)), Name(0) { + UseList(0), Name(0) { if (isa<CallInst>(this) || isa<InvokeInst>(this)) assert((VTy->isFirstClassType() || VTy == Type::VoidTy || isa<OpaqueType>(ty) || VTy->getTypeID() == Type::StructTyID) && @@ -298,7 +298,7 @@ void Value::takeName(Value *V) { // void Value::uncheckedReplaceAllUsesWith(Value *New) { while (!use_empty()) { - Use &U = *use_begin().U; + Use &U = *UseList; // Must handle Constants specially, we cannot call replaceUsesOfWith on a // constant because they are uniqued. if (Constant *C = dyn_cast<Constant>(U.getUser())) { |