OSDN Git Service

X86: silence sign comparison warning
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 24 Jul 2014 17:12:06 +0000 (17:12 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 24 Jul 2014 17:12:06 +0000 (17:12 +0000)
commit9a050915f91b1da787ab07b870c72f3cd3c710ae
treef13da29812a95c6b33f91787c9419e608cd9f5ab
parentcb1ac706233bf2c051f9c27f89672e49bb1ef5d7
X86: silence sign comparison warning

GCC 4.8 detected a signed compare [-Wsign-compare].  Add a cast for the
destination index.  Add an assert to catch a potential overflow however unlikely
it may be.

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