Fix a crash in the LL parser where it failed to validate that the pointer operand...
authorOwen Anderson <resistor@mac.com>
Mon, 2 Mar 2015 05:25:06 +0000 (05:25 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 2 Mar 2015 05:25:06 +0000 (05:25 +0000)
commitdafab60b57e71c0a2baced53affe3aa580f6eb3f
treea4bf604cfe47aab38df0a40f94b399e69ca41591
parent0c7c98a27d989d19848a22f97c1ad1ab8efa111e
Fix a crash in the LL parser where it failed to validate that the pointer operand of a GEP was valid.

This manifested as an assertion failure in +Asserts builds, and a hard crash in -Asserts builds.  Found by fuzzing the LL parser.

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