diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-07-24 00:08:56 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-07-24 00:08:56 +0000 |
commit | 1bf9a18834b338484c0a494110cff9cc407be381 (patch) | |
tree | f42295a2406340562de9143e642a9373fa8702c0 /lib/VMCore | |
parent | 7fbad27cfb7298c707e50af10609d463900d7211 (diff) | |
download | llvm-1bf9a18834b338484c0a494110cff9cc407be381.tar.gz llvm-1bf9a18834b338484c0a494110cff9cc407be381.tar.bz2 llvm-1bf9a18834b338484c0a494110cff9cc407be381.tar.xz |
Rename instance variables, parameter argument names to eliminate a bunch of compilation warnings with -Wshadow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Value.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index 5df3532769..bc5b7a9f81 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -33,14 +33,14 @@ static inline const Type *checkType(const Type *Ty) { } Value::Value(const Type *ty, unsigned scid) - : SubclassID(scid), SubclassData(0), Ty(checkType(ty)), + : SubclassID(scid), SubclassData(0), VTy(checkType(ty)), UseList(0), Name(0) { if (isa<CallInst>(this) || isa<InvokeInst>(this)) - assert((Ty->isFirstClassType() || Ty == Type::VoidTy || - isa<OpaqueType>(ty) || Ty->getTypeID() == Type::StructTyID) && + assert((VTy->isFirstClassType() || VTy == Type::VoidTy || + isa<OpaqueType>(ty) || VTy->getTypeID() == Type::StructTyID) && "invalid CallInst type!"); else if (!isa<Constant>(this) && !isa<BasicBlock>(this)) - assert((Ty->isFirstClassType() || Ty == Type::VoidTy || + assert((VTy->isFirstClassType() || VTy == Type::VoidTy || isa<OpaqueType>(ty)) && "Cannot create non-first-class values except for constants!"); } @@ -54,7 +54,7 @@ Value::~Value() { // a <badref> // if (!use_empty()) { - DOUT << "While deleting: " << *Ty << " %" << getNameStr() << "\n"; + DOUT << "While deleting: " << *VTy << " %" << getNameStr() << "\n"; for (use_iterator I = use_begin(), E = use_end(); I != E; ++I) DOUT << "Use still stuck around after Def is destroyed:" << **I << "\n"; |