From 091c5c2523667a0e52954d330fc252ea0a9a481f Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 4 Feb 2019 12:32:39 +0000 Subject: [PATCH] Use auto for dyn_cast case to save a line. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353041 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ISelLowering.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 50502e2911e..95827fbed5d 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -40493,8 +40493,7 @@ static SDValue combineVectorCompareAndMaskUnaryOp(SDNode *N, // make the transformation for non-constant splats as well, but it's unclear // that would be a benefit as it would not eliminate any operations, just // perform one more step in scalar code before moving to the vector unit. - if (BuildVectorSDNode *BV = - dyn_cast(N->getOperand(0)->getOperand(1))) { + if (auto *BV = dyn_cast(N->getOperand(0).getOperand(1))) { // Bail out if the vector isn't a constant. if (!BV->isConstant()) return SDValue(); -- 2.40.0