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

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 07:46:28 PDT 2016


> +    if (isa<DICompileUnit>(CU))
> +      if (auto Ts = cast<DICompileUnit>(CU)->getRetainedTypes())

Use dyn_cast instead of isa + cast.

Cheers,
Rafael


More information about the llvm-commits mailing list