calling a function with the wrong CC is undefined, turn it into an unreachable
authorChris Lattner <sabre@nondot.org>
Fri, 13 May 2005 07:09:09 +0000 (07:09 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 May 2005 07:09:09 +0000 (07:09 +0000)
commit08b22ecc8870b3657d94ebf7d1f91d9fd5d47744
treed8c1f84451c40a8799022b2f547c723cb6c8b69e
parent712ad0c36dcfacb30620c793a6ffe4e80bd5d569
calling a function with the wrong CC is undefined, turn it into an unreachable
instruction.  This is useful for catching optimizers that don't preserve
calling conventions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21928 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp