Fix a stack overflow in the assembler when checking that GEPs must be over sized...
authorOwen Anderson <resistor@mac.com>
Tue, 10 Mar 2015 06:34:57 +0000 (06:34 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 10 Mar 2015 06:34:57 +0000 (06:34 +0000)
commitbb6a88c25d6586cec20dafd2bddf0387748eecc9
tree0fe56072f98017708ca7399f7786c514f6519192
parent4935faa4ee36a744cf167388894e60c0c448090e
Fix a stack overflow in the assembler when checking that GEPs must be over sized types.

We failed to use a marking set to properly handle recursive types, which caused use
to recurse infinitely and eventually overflow the stack.

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