aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitHeaderSearch.cpp
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2017-10-02 18:13:14 +0000
committerDehao Chen <dehao@google.com>2017-10-02 18:13:14 +0000
commitf464627f2828b3496456a41b5697f31c6756431f (patch)
tree5c74c754c0bf8c82e24f97a18b4d0c896308c04c /clang/lib/Frontend/InitHeaderSearch.cpp
parentbf11424b7fcabf997c2d43c7d0d9949351588b45 (diff)
downloadllvm-f464627f2828b3496456a41b5697f31c6756431f.zip
llvm-f464627f2828b3496456a41b5697f31c6756431f.tar.gz
llvm-f464627f2828b3496456a41b5697f31c6756431f.tar.bz2
Update getMergedLocation to check the instruction type and merge properly.
Summary: If the merged instruction is call instruction, we need to set the scope to the closes common scope between 2 locations, otherwise it will cause trouble when the call is getting inlined. Reviewers: dblaikie, aprantl Reviewed By: dblaikie, aprantl Subscribers: llvm-commits, sanjoy Differential Revision: https://reviews.llvm.org/D37877 llvm-svn: 314694
Diffstat (limited to 'clang/lib/Frontend/InitHeaderSearch.cpp')
0 files changed, 0 insertions, 0 deletions