[IR] Add bounds checking to paramHasAttr
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 4 Nov 2015 20:33:45 +0000 (20:33 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 4 Nov 2015 20:33:45 +0000 (20:33 +0000)
commitd13e995447c3a68104cd0f11ef66342c651e4c03
tree3db2f68e406bc3acfb33cf4f3931a07d15fe73f0
parent6d6131b03ba3063377fdfa2c6f6b43d10d7237c1
[IR] Add bounds checking to paramHasAttr

Summary:
This is intended to make a later change simpler.

Note: adding this bounds checking required fixing `X86FastISel`.  As
far I can tell I've preserved original behavior but a careful review
will be appreciated.

Reviewers: reames

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D14304

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