Reduce size of integer constant make x86-64 asm parsing code compile on x86-32.

This commit is contained in:
Christian Kamm
2009-02-16 18:27:33 +01:00
parent 62e0f85043
commit 51385fe325

View File

@@ -1712,7 +1712,7 @@ namespace AsmParserx8664
operand->dataSize = Byte_Ptr;
else if ( operand->constDisplacement < 0x10000 )
operand->dataSize = Short_Ptr;
else if ( operand->constDisplacement < 0x100000000 )
else if ( operand->constDisplacement <= 0xFFFFFFFF )
operand->dataSize = Int_Ptr;
else
//This could be possible since we are using 48 bits