[SafeStack] Set debug location for calls to __safestack_pointer_address.
authorEli Friedman <efriedma@codeaurora.org>
Fri, 24 Aug 2018 20:42:32 +0000 (20:42 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Fri, 24 Aug 2018 20:42:32 +0000 (20:42 +0000)
commit59de37ba6c9ef34b089d5c1f7ad90bace6342091
treebf6925f360b7ecfce7693e5d0ba9e22f92a2d535
parent29729f152960f32fa73b0d350c6ea5ed96e61850
[SafeStack] Set debug location for calls to __safestack_pointer_address.

Otherwise, the debug info is incorrect.  On its own, this is mostly
harmless, but the safe-stack also later inlines the call to
__safestack_pointer_address, which leads to debug info with the wrong
scope, which eventually causes an assertion failure (and incorrect debug
info in release mode).

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

llvm-svn: 340651
llvm/lib/CodeGen/SafeStack.cpp
llvm/test/Transforms/SafeStack/ARM/debug.ll [new file with mode: 0644]