[PATCH] D83200: [VE] Change to use isa
Kazushi Marukawa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 12:53:28 PDT 2020
kaz7 created this revision.
kaz7 added reviewers: simoll, k-ishizaka.
kaz7 added projects: LLVM, VE.
Herald added subscribers: llvm-commits, hiraditya.
Change to use isa instead of dyn_cast to avoid a warning.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83200
Files:
llvm/lib/Target/VE/VEISelLowering.cpp
Index: llvm/lib/Target/VE/VEISelLowering.cpp
===================================================================
--- llvm/lib/Target/VE/VEISelLowering.cpp
+++ llvm/lib/Target/VE/VEISelLowering.cpp
@@ -548,7 +548,7 @@
// for all immediate values now.
// FIXME: Change hasAndNot function to have two operands to make it work
// correctly with Aurora VE.
- if (auto *C = dyn_cast<ConstantSDNode>(Y))
+ if (isa<ConstantSDNode>(Y))
return false;
// It's ok for generic registers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83200.275614.patch
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200706/331c79c9/attachment.bin>
More information about the llvm-commits
mailing list