[lld] r234576 - [ARM] Remove unused variable in dynamic pass
Denis Protivensky
dprotivensky at accesssoftek.com
Fri Apr 10 03:29:19 PDT 2015
Ah, thanks Simon. Will change.
On 04/10/2015 01:23 PM, Simon Atanasyan wrote:
Hi,
On Fri, Apr 10, 2015 at 10:53 AM, Denis Protivensky
<dprotivensky at accesssoftek.com><mailto: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150410/4af53bf0/attachment.html>
More information about the llvm-commits
mailing list