OSDN Git Service

AsmParser: Don't crash on unresolved !tbaa
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 6 Apr 2016 02:06:40 +0000 (02:06 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 6 Apr 2016 02:06:40 +0000 (02:06 +0000)
commit13d5c58951083fd44481974a2beb764914f20907
tree919ce6a813f77584f2603a043db9a0ed82968cdd
parent4f461cab384caa2f6db77cdb5e4b2bffcdae7563
AsmParser: Don't crash on unresolved !tbaa

Instead of crashing, give a nice error.  As a drive-by, fix the location
associated with the errors for unresolved metadata (the location was off
by one token).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265507 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp
test/Assembler/invalid-mdnode-badref.ll
test/Assembler/missing-tbaa.ll [new file with mode: 0644]