Should not remove casts from variable's alloca.
authorJim Laskey <jlaskey@mac.com>
Mon, 27 Mar 2006 23:30:18 +0000 (23:30 +0000)
committerJim Laskey <jlaskey@mac.com>
Mon, 27 Mar 2006 23:30:18 +0000 (23:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27191 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IntrinsicInst.h

index b82fa02370ccadac72919c37ee170f8b45b1a08d..146ce1db080aac4c2f3dba484d3e11305866129f 100644 (file)
@@ -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: