diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h index 4cdad67a736..978ea44f9d7 100644 --- a/include/llvm/CodeGen/ValueTypes.h +++ b/include/llvm/CodeGen/ValueTypes.h @@ -111,7 +111,12 @@ namespace llvm { iPTR = 255, // LastSimpleValueType - The greatest valid SimpleValueType value. - LastSimpleValueType = 255 + LastSimpleValueType = 255, + + // FirstExtendedValueType - This sentinel is needed so that gcc 4.4 won't + // optimize away checks of a SimpleValueType compared to + // LastSimpleValueType+1. + FirstExtendedValueType = 256 }; SimpleValueType SimpleTy;