[llvm-commits] CVS: llvm-gcc/gcc/llvm-expand.c

Chris Lattner lattner at cs.uiuc.edu
Thu May 5 20:59:05 PDT 2005



Changes in directory llvm-gcc/gcc:

llvm-expand.c updated: 1.95 -> 1.96
---
Log message:

minor speedup


---
Diffs of the changes:  (+2 -1)

 llvm-expand.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm-gcc/gcc/llvm-expand.c
diff -u llvm-gcc/gcc/llvm-expand.c:1.95 llvm-gcc/gcc/llvm-expand.c:1.96
--- llvm-gcc/gcc/llvm-expand.c:1.95	Sat Apr  9 22:18:37 2005
+++ llvm-gcc/gcc/llvm-expand.c	Thu May  5 22:58:48 2005
@@ -6117,7 +6117,8 @@
         /* If this is a read of a bitfield value, we have to mask and shift the
          * cruft out.
          */
-        Result = ReadBitField(Fn, Result, BitStart, BitSize);
+        if (BitSize)
+          Result = ReadBitField(Fn, Result, BitStart, BitSize);
 
         /* WIERDNESS: G++ allows loading from a bitfield and storing into an
          * aggregate.  For example, the aggregate may have type "{ushort}", and






More information about the llvm-commits mailing list