[llvm] 23d9f4b - [X86] Fix llvm-qualified-auto warning by using auto*. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 3 06:25:24 PDT 2020
Author: Simon Pilgrim
Date: 2020-09-03T14:21:17+01:00
New Revision: 23d9f4b958b8bc1f8862cad027b1f7c747bb5375
URL: https://github.com/llvm/llvm-project/commit/23d9f4b958b8bc1f8862cad027b1f7c747bb5375
DIFF: https://github.com/llvm/llvm-project/commit/23d9f4b958b8bc1f8862cad027b1f7c747bb5375.diff
LOG: [X86] Fix llvm-qualified-auto warning by using auto*. NFC.
Added:
Modified:
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index ee61787170fc..840f132ec666 100644
--- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -3379,7 +3379,7 @@ bool X86DAGToDAGISel::matchBitExtract(SDNode *Node) {
// Match the shift amount as: (bitwidth - y). It should go away, too.
if (ShiftAmt.getOpcode() != ISD::SUB)
return false;
- auto V0 = dyn_cast<ConstantSDNode>(ShiftAmt.getOperand(0));
+ auto *V0 = dyn_cast<ConstantSDNode>(ShiftAmt.getOperand(0));
if (!V0 || V0->getZExtValue() != Bitwidth)
return false;
NBits = ShiftAmt.getOperand(1);
More information about the llvm-commits
mailing list