[llvm-commits] [PATCH] Target/ARM build failure on Cygwin-1.5

NAKAMURA Takumi geek4civic at gmail.com
Mon Sep 6 07:22:36 PDT 2010


Hello,

Cygwin-1.5 has uint32_t as "unsigned long", and fails to build by type mismatch.
I wonder which would be better to fix, Session::ITState or setSlice().

...Takumi
-------------- next part --------------
diff --git a/lib/Target/ARM/Disassembler/ARMDisassembler.h b/lib/Target/ARM/Disassembler/ARMDisassembler.h
index 0a74a38..8c94e4f 100644
--- a/lib/Target/ARM/Disassembler/ARMDisassembler.h
+++ b/lib/Target/ARM/Disassembler/ARMDisassembler.h
@@ -66,7 +66,7 @@ public:
 
 private:
   unsigned ITCounter; // Possible values: 0, 1, 2, 3, 4.
-  unsigned ITState;   // A2.5.2 Consists of IT[7:5] and IT[4:0] initially.
+  uint32_t ITState;   // A2.5.2 Consists of IT[7:5] and IT[4:0] initially.
 };
 
 /// ThumbDisassembler - Thumb disassembler for all ARM platforms.


More information about the llvm-commits mailing list