OSDN Git Service

[DebugInfo] Handle same locations in DILocation::getMergedLocation
authorRobert Lougher <rob.lougher@gmail.com>
Thu, 12 Jan 2017 20:34:35 +0000 (20:34 +0000)
committerRobert Lougher <rob.lougher@gmail.com>
Thu, 12 Jan 2017 20:34:35 +0000 (20:34 +0000)
commitcecc5431c0852c404cc4ceed112bee511898a49f
tree9b0e7110178892902db06eea9306e2e121a24ad6
parent8d5c625efe36a864a2b0c61830bfe5c6e5cbcc7e
[DebugInfo] Handle same locations in DILocation::getMergedLocation

Revision 289661 introduced the function DILocation::getMergedLocation for
merging of debug locations. At the time is was simply a stub which always
returned no location. This patch modifies getMergedLocation to handle the
case where the two locations are the same or can't be discriminated.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291809 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfoMetadata.h
test/DebugInfo/Generic/simplifycfg_sink_last_inst.ll