(store_constructor): Properly get constant part of bit position when
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 15 Dec 1994 12:49:16 +0000 (07:49 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 15 Dec 1994 12:49:16 +0000 (07:49 -0500)
DECL_FIELD_BITPOS is a PLUS_EXPR.

From-SVN: r8655

gcc/expr.c

index dbdbaab789711fe3d9f7d07068c004fe6581d0b0..8a85200ef689cbf80013644175dde41daf70ced7 100644 (file)
@@ -3001,7 +3001,7 @@ store_constructor (exp, target)
            offset = pos;
 
          if (constant)
-           bitpos = TREE_INT_CST_LOW (DECL_FIELD_BITPOS (field));
+           bitpos = TREE_INT_CST_LOW (constant);
 
          if (offset)
            {