[PATCH] Use isa<> instead of checking return value of definition().

Rui Ueyama ruiu at google.com
Tue Oct 14 14:20:35 PDT 2014


Hi kledzik,

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

http://reviews.llvm.org/D5785

Files:
  lib/ReaderWriter/MachO/GOTPass.cpp
  lib/ReaderWriter/MachO/StubsPass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5785.14891.patch
Type: text/x-patch
Size: 1134 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141014/17756025/attachment.bin>


More information about the llvm-commits mailing list