Add some context to fatal verifier errors
authorXin Tong <trent.xin.tong@gmail.com>
Tue, 11 Sep 2018 18:06:03 +0000 (18:06 +0000)
committerXin Tong <trent.xin.tong@gmail.com>
Tue, 11 Sep 2018 18:06:03 +0000 (18:06 +0000)
commit2533f747d7ed7856fe58f9a02c0c51fdb48a41c6
treecb132ebe9e8b33708c8779e493d0ecd448ad5949
parent8238580aae31a222133fa52d3d9f945b64a3e2ec
Add some context to fatal verifier errors

Summary: Add function name when verification fails as an initial breadcrumb for debugging.

Patch by David Callahan.

Reviewers: mehdi_amini, modocache

Reviewed By: modocache

Subscribers: llvm-commits, modocache

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

llvm-svn: 341974
llvm/lib/IR/Verifier.cpp