]> granicus.if.org Git - llvm/commit
[ArgPromotion] Set debug location at updated callsites
authorVedant Kumar <vsk@apple.com>
Tue, 2 Apr 2019 17:42:17 +0000 (17:42 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 2 Apr 2019 17:42:17 +0000 (17:42 +0000)
commit9f961da60ecab95a17036a75d01a6ea416439d5f
treecc196c1e0db2037273e1888ac5fb3ccdd11b461d
parent3bc14040b50cfc16a789e22ebdaa080b750f29fa
[ArgPromotion] Set debug location at updated callsites

Set the correct debug location on instructions which load arguments in
preparation for a call to an arg-promoted function.

This prevents location cascade from misattributing the line/scope of one
of these loads to the location of the instruction preceding the call.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357500 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/ArgumentPromotion.cpp
test/Transforms/ArgumentPromotion/dbg.ll