[lld] r234576 - [ARM] Remove unused variable in dynamic pass
Simon Atanasyan
simon at atanasyan.com
Fri Apr 10 03:23:24 PDT 2015
Hi,
On Fri, Apr 10, 2015 at 10:53 AM, Denis Protivensky
<dprotivensky at accesssoftek.com> wrote:
> - if (const auto sla = dyn_cast<const SharedLibraryAtom>(ref.target())) {
> + if (dyn_cast<const SharedLibraryAtom>(ref.target())) {
If you only need to check the type there is a special function
`llvm::isa<>`. So in the case above:
if (isa<SharedLibraryAtom>(ref.target()))
--
Simon Atanasyan
More information about the llvm-commits
mailing list