[IR] Add some asserts to CallInst and InvokeInst; NFCI.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 28 Aug 2015 19:09:34 +0000 (19:09 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 28 Aug 2015 19:09:34 +0000 (19:09 +0000)
commit18188f126182961d3882347f27d3e82f5f2f71e3
treed7fb16bf5f25f2e8597b47120bb079643c43136f
parentc93f771c2f8ef8795609e70340b566829925f5b2
[IR] Add some asserts to CallInst and InvokeInst; NFCI.

The asserts check that accessors supposed to access call / invoke
arguments only ever access call / invoke arguments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246316 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instructions.h