]> granicus.if.org Git - llvm/commit
Fix Calling Convention through aliases
authorErich Keane <erich.keane@intel.com>
Mon, 7 Oct 2019 17:28:03 +0000 (17:28 +0000)
committerErich Keane <erich.keane@intel.com>
Mon, 7 Oct 2019 17:28:03 +0000 (17:28 +0000)
commitec55906c1ca748003045763d0d3fc7c8503e7235
tree2a7c62d62cb1d71b8d37b9c995ec584cf88fa266
parent297307653d0e26d236d65fadccb15a21522d845e
Fix Calling Convention through aliases

r369697 changed the behavior of stripPointerCasts to no longer include
aliases.  However, the code in CGDeclCXX.cpp's createAtExitStub counted
on the looking through aliases to properly set the calling convention of
a call.

The result of the change was that the calling convention mismatch of the
call would be replaced with a llvm.trap, causing a runtime crash.

Differential Revision: https://reviews.llvm.org/D68584

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373929 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Value.h
lib/IR/Value.cpp