[llvm] r265514 - [IRVerifier] Avoid crashing on an invalid compile unit.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 11:19:48 PDT 2016


On Wed, Apr 6, 2016 at 7:46 AM, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
>> +    if (isa<DICompileUnit>(CU))
>> +      if (auto Ts = cast<DICompileUnit>(CU)->getRetainedTypes())
>
> Use dyn_cast instead of isa + cast.
>
> Cheers,
> Rafael

This should be fixed in r265579.

Cheers,

-- 
Davide

"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare


More information about the llvm-commits mailing list