fix rdar://7590304, a miscompilation of objc apps on arm. The caller
authorChris Lattner <sabre@nondot.org>
Mon, 1 Feb 2010 18:11:34 +0000 (18:11 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Feb 2010 18:11:34 +0000 (18:11 +0000)
commitd569561835b0fa4dbbb0fca1b1f0a8de6c01439a
treef0bf9cfda7327d5f4b3bc6bc62e68caa8d7b1f4e
parent830f3f205d8a77acbf8838fe78c2c733ca924d9c
fix rdar://7590304, a miscompilation of objc apps on arm.  The caller
of objc message send was getting marked arm_apcscc, but the prototype
isn't.  This is fine at runtime because objcmsgsend is implemented in
assembly.  Only turn a mismatched caller and callee into 'unreachable'
if the callee is a definition.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94986 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/call.ll