<html>
<head>
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ah, thanks Simon. Will change.<br>
<br>
<div class="moz-cite-prefix">On 04/10/2015 01:23 PM, Simon Atanasyan
wrote:<br>
</div>
<blockquote
cite="mid:CAGyS+DRy5yQoF0V9aRv9WZPdnj6soRXoSLyWAH1qDK0qKOv3YA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="MS Exchange Server version
08.03.0377.000">
<title>Re: [lld] r234576 - [ARM] Remove unused variable in dynamic
pass</title>
<!-- Converted from text/plain format -->
<p><font size="2">Hi,<br>
<br>
On Fri, Apr 10, 2015 at 10:53 AM, Denis Protivensky<br>
<a class="moz-txt-link-rfc2396E" href="mailto:dprotivensky@accesssoftek.com"><dprotivensky@accesssoftek.com></a> wrote:<br>
> - if (const auto sla = dyn_cast<const
SharedLibraryAtom>(ref.target())) {<br>
> + if (dyn_cast<const
SharedLibraryAtom>(ref.target())) {<br>
<br>
If you only need to check the type there is a special function<br>
`llvm::isa<>`. So in the case above:<br>
<br>
if (isa<SharedLibraryAtom>(ref.target()))<br>
<br>
--<br>
Simon Atanasyan<br>
</font>
</p>
</blockquote>
<br>
</body>
</html>