diff options
author | Kaelyn Uhrain <rikka@google.com> | 2013-12-07 00:13:34 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2013-12-07 00:13:34 +0000 |
commit | b95d0907fc6859b5f502a108e8793fa5335bf580 (patch) | |
tree | b26af9e38fe657bb17c16f42203fb8f0d29b46b6 /include/llvm/IR/DerivedTypes.h | |
parent | 46af5e8efabfcd57b5872cda3eb10d92ca1780d4 (diff) | |
download | llvm-b95d0907fc6859b5f502a108e8793fa5335bf580.tar.gz llvm-b95d0907fc6859b5f502a108e8793fa5335bf580.tar.bz2 llvm-b95d0907fc6859b5f502a108e8793fa5335bf580.tar.xz |
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
Diffstat (limited to 'include/llvm/IR/DerivedTypes.h')
-rw-r--r-- | include/llvm/IR/DerivedTypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/IR/DerivedTypes.h b/include/llvm/IR/DerivedTypes.h index e279e60e47..758ef71a1f 100644 --- a/include/llvm/IR/DerivedTypes.h +++ b/include/llvm/IR/DerivedTypes.h @@ -249,7 +249,7 @@ public: bool isOpaque() const { return (getSubclassData() & SCDB_HasBody) == 0; } /// isSized - Return true if this is a sized type. - bool isSized() const; + bool isSized(SmallPtrSet<const Type*, 4> *Visited = 0) const; /// hasName - Return true if this is a named struct that has a non-empty name. bool hasName() const { return SymbolTableEntry != 0; } |