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

Chris Lattner lattner at cs.uiuc.edu
Tue Mar 16 02:45:01 PST 2004


Changes in directory llvm-gcc/gcc:

llvm-expand.c updated: 1.26 -> 1.27

---
Log message:

Begin numbering labels at 1 so that code that uses the null pointer as a 
sentinal value will work.


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

Index: llvm-gcc/gcc/llvm-expand.c
diff -u llvm-gcc/gcc/llvm-expand.c:1.26 llvm-gcc/gcc/llvm-expand.c:1.27
--- llvm-gcc/gcc/llvm-expand.c:1.26	Tue Mar 16 01:09:47 2004
+++ llvm-gcc/gcc/llvm-expand.c	Tue Mar 16 02:44:49 2004
@@ -5105,7 +5105,7 @@
        */
       llvm_instruction *TheSwitch = EnsureIndirectGotoBlockExists(Fn);
       llvm_switch_case *Case;
-      unsigned ID = Fn->ExpandInfo->NumAddrTakenBlocks++;
+      unsigned ID = ++Fn->ExpandInfo->NumAddrTakenBlocks;
 
       BB->BlockID = llvm_constant_new_integral(UIntTy, ID);
       





More information about the llvm-commits mailing list