Use isa<> instead of checking return value of definition().
authorRui Ueyama <ruiu@google.com>
Tue, 14 Oct 2014 21:20:01 +0000 (21:20 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 14 Oct 2014 21:20:01 +0000 (21:20 +0000)
commite1ebc76072219b354dd642d6c712d3600071395e
treecfee74ca14380eea99deb87d4cd3884741e41f35
parent3ba162d2f9e955cb3ebf4a246e259f2c31ea4c8e
Use isa<> instead of checking return value of definition().

definition() is supposed to be used through isa, dyn_cast or cast.
It's better to not call that directly.

llvm-svn: 219723
lld/lib/ReaderWriter/MachO/GOTPass.cpp
lld/lib/ReaderWriter/MachO/StubsPass.cpp