OSDN Git Service

Add debug location verification for !llvm.loop attachments.
authorAdrian Prantl <aprantl@apple.com>
Tue, 18 Jun 2019 19:42:29 +0000 (19:42 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 18 Jun 2019 19:42:29 +0000 (19:42 +0000)
commitba29b473c9ebd4aa03da75f7a4f9b9a4e0a5c173
tree6633c25e21f3d0c1139dce0d0b2f07c07b11da0b
parentddf63a4a7f536f3ca2186646c4550b59b065898b
Add debug location verification for !llvm.loop attachments.

This patch teaches the Verifier how to detect broken !llvm.loop
attachments as discussed in https://reviews.llvm.org/D60831. This
allows LLVM to warn and strip out the broken debug info before
attempting an LTO compilation with input generated by LLVM predating
https://reviews.llvm.org/rL361149.

rdar://problem/51631158

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363725 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Verifier.cpp
test/Verifier/llvm.loop.ll [new file with mode: 0644]