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)
commitf8f259df48d3af96b06b50b14cc08e7e72b028ce
tree3e610fe89b659ce693e095329c3d87f5bfd1d43c
parent6e084ccda3ac4f4e817036ca2df734f3bc1133f4
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.

llvm-svn: 231634
llvm/lib/AsmParser/LLParser.cpp
llvm/test/Assembler/invalid-landingpad.ll [new file with mode: 0644]