Fix the segfault reported in PR 11990.
authorKaelyn Uhrain <rikka@google.com>
Sat, 7 Dec 2013 00:13:34 +0000 (00:13 +0000)
committerKaelyn Uhrain <rikka@google.com>
Sat, 7 Dec 2013 00:13:34 +0000 (00:13 +0000)
commitb95d0907fc6859b5f502a108e8793fa5335bf580
treeb26af9e38fe657bb17c16f42203fb8f0d29b46b6
parent46af5e8efabfcd57b5872cda3eb10d92ca1780d4
Fix the segfault reported in PR 11990.

The sefault occurs due to an infinite loop when the verifier tries to
determine the size of a type of the form "%rt = type { %rt }" while
checking an alloca of the type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196626 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DerivedTypes.h
include/llvm/IR/Type.h
lib/IR/Type.cpp
lib/IR/Verifier.cpp
test/Verifier/recursive-type-1.ll [new file with mode: 0644]
test/Verifier/recursive-type-2.ll [new file with mode: 0644]
test/Verifier/recursive-type-3.ll [new file with mode: 0644]