From 1bf9a18834b338484c0a494110cff9cc407be381 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 24 Jul 2008 00:08:56 +0000 Subject: 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 --- lib/VMCore/Value.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/VMCore') 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(this) || isa(this)) - assert((Ty->isFirstClassType() || Ty == Type::VoidTy || - isa(ty) || Ty->getTypeID() == Type::StructTyID) && + assert((VTy->isFirstClassType() || VTy == Type::VoidTy || + isa(ty) || VTy->getTypeID() == Type::StructTyID) && "invalid CallInst type!"); else if (!isa(this) && !isa(this)) - assert((Ty->isFirstClassType() || Ty == Type::VoidTy || + assert((VTy->isFirstClassType() || VTy == Type::VoidTy || isa(ty)) && "Cannot create non-first-class values except for constants!"); } @@ -54,7 +54,7 @@ Value::~Value() { // a // 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"; -- cgit v1.2.3