[llvm] af8389e - [VE] Change to use isa

Kazushi Marukawa via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 11:48:57 PDT 2020


Author: Kazushi (Jam) Marukawa
Date: 2020-07-07T03:48:49+09:00
New Revision: af8389e1315a1d4fa2bb5116f40cfc0704891a58

URL: https://github.com/llvm/llvm-project/commit/af8389e1315a1d4fa2bb5116f40cfc0704891a58
DIFF: https://github.com/llvm/llvm-project/commit/af8389e1315a1d4fa2bb5116f40cfc0704891a58.diff

LOG: [VE] Change to use isa

Summary: Change to use isa instead of dyn_cast to avoid a warning.

Reviewers: simoll, k-ishizaka

Reviewed By: simoll

Subscribers: hiraditya, llvm-commits

Tags: #llvm, #ve

Differential Revision: https://reviews.llvm.org/D83200

Added: 
    

Modified: 
    llvm/lib/Target/VE/VEISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/VE/VEISelLowering.cpp b/llvm/lib/Target/VE/VEISelLowering.cpp
index 9abffae413d4..ab720545dd83 100644
--- a/llvm/lib/Target/VE/VEISelLowering.cpp
+++ b/llvm/lib/Target/VE/VEISelLowering.cpp
@@ -548,7 +548,7 @@ bool VETargetLowering::hasAndNot(SDValue Y) const {
   // 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.


        


More information about the llvm-commits mailing list