]> granicus.if.org Git - clang/commit
CodeGen: ensure that the runtime calling convention matches
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 13 Oct 2016 19:45:08 +0000 (19:45 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 13 Oct 2016 19:45:08 +0000 (19:45 +0000)
commitd21d749d082594a2610649bd9e29ae7cb84892cf
tree1235b65b49a6d13e26aec52e1185032bb4ba41e2
parent6ea1c6c267e6a543c663599798770c1df09c17c5
CodeGen: ensure that the runtime calling convention matches

Incorrect specification of the calling convention results in UB which can cause
the code path to be eliminated.  Simplify the existing code by using the
RuntimeCall constructor in `CodeGenFunction`.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284154 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGObjCRuntime.cpp
test/CodeGenObjC/runtime-abi-match.m [new file with mode: 0644]