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)
commit3c890c4ad651ca5f0a52e9f4143ce8fe52ff3924
treed34576757581417bbf38dbbf96faf0386c2c71c6
parent885719f02731dda9c53eb0a89784bc06918cdad7
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.

llvm-svn: 210806
llvm/lib/Target/X86/X86TargetTransformInfo.cpp