Fix for segfault reported in PR 11990

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Dec 5 11:58:56 PST 2013


Is it possible to avoid changing the isSized interface? Maybe it could
be implemented as

static bool isSizedImpl(const StructType &Ty, SmallPtrSet<const Type*,
4> &Visited) {...}

bool StructType::isSized() const {
SmallPtrSet<const Type*, 4> Visited;
return isSizedImple(*this, Visited);
}


On 4 December 2013 16:09, Kaelyn Takata <rikka at google.com> wrote:
> Here's a patch that fixes the segfault in the verifier when trying to
> determine the size of a type of the form "%rt = type { %rt }" while checking
> an alloca of the type.
>
> I suspect this is also a candidate for the release branch, as it is a
> crasher that has apparently existed since the 3.0 release.
>
> Cheers,
> Kaelyn
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list