Fix a bug in the LLParser where we failed to diagnose landingpads with non-constant...
authorOwen Anderson <resistor@mac.com>
Mon, 9 Mar 2015 07:13:42 +0000 (07:13 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 9 Mar 2015 07:13:42 +0000 (07:13 +0000)
commit8e120d80c3a6b4d209a6083838008951b0008296
treea3907fa7191118254b4dc9f905feaa1dd070fdf5
parent40e66277f7daa2f5ce6f4f62b91c1a17e50df98c
Fix a bug in the LLParser where we failed to diagnose landingpads with non-constant clause operands.

Fixing this also exposed a related issue where the landingpad under construction was not
cleaned up when an error was raised, which would cause bad reference errors before the
error could actually be printed.

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