X86: stifle GCC warning
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 12 Jun 2014 17:56:18 +0000 (17:56 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 12 Jun 2014 17:56:18 +0000 (17:56 +0000)
commita984b30b764a9411bc0c592f4475b8cbde4235ac
treec3382569a224bf9c5f983ae8329dc14b97225058
parentdaf73d60ef090f8d00aa8240ec949f37cf75f79b
X86: stifle GCC warning

lib/Target/X86/X86TargetTransformInfo.cpp: In member function â€˜virtual unsigned int {anonymous}::X86TTI::getIntImmCost(unsigned int, unsigned int, const llvm::APInt&, llvm::Type*) const’:
lib/Target/X86/X86TargetTransformInfo.cpp:920:60: warning: enumeral and non-enumeral type in conditional expression [enabled by default]

This seems like an unhelpful warning, but there doesnt seem to be a controlling
flag, so add an explicit cast to silence the warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210806 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86TargetTransformInfo.cpp