From: Jim Laskey Date: Mon, 27 Mar 2006 23:30:18 +0000 (+0000) Subject: Should not remove casts from variable's alloca. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eabef6b12e255125633e4149e86620223377639b;p=oota-llvm.git Should not remove casts from variable's alloca. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27191 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IntrinsicInst.h b/include/llvm/IntrinsicInst.h index b82fa02370c..146ce1db080 100644 --- a/include/llvm/IntrinsicInst.h +++ b/include/llvm/IntrinsicInst.h @@ -163,7 +163,7 @@ namespace llvm { /// DbgDeclareInst - This represents the llvm.dbg.declare instruction. /// struct DbgDeclareInst : public DbgInfoIntrinsic { - Value *getAddress() const { return StripCast(getOperand(1)); } + Value *getAddress() const { return getOperand(1); } Value *getVariable() const { return StripCast(getOperand(2)); } // Methods for support type inquiry through isa, cast, and dyn_cast: