diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-08-24 23:30:57 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-08-24 23:30:57 +0000 |
commit | 4ddd0596350d102693839349ba4d741a5bbae427 (patch) | |
tree | 38a3bed540300c1b19c8ef5da0a49132df2a41b5 /llvm/lib/Bitcode | |
parent | 2b1dc39d1885b1dc014e76977488bbc6eae57cb6 (diff) | |
download | bcm5719-llvm-4ddd0596350d102693839349ba4d741a5bbae427.tar.gz bcm5719-llvm-4ddd0596350d102693839349ba4d741a5bbae427.zip |
Prevent DILocation::getMergedLocation() from creating invalid metadata.
The function's new implementation from r340583 had a bug in it that
could cause an invalid scope to be generated when merging two
DILocations with no common ancestor scope.
This patch detects this situation and picks the scope of the first
location. This is not perfect, because the scope is misleading, but on
the other hand, this will be a line 0 location.
rdar://problem/43687474
Differential Revision: https://reviews.llvm.org/D51238
llvm-svn: 340672
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions