summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index d118e38ae72..c6ab4fb70f6 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -26428,8 +26428,7 @@ void X86TargetLowering::ReplaceNodeResults(SDNode *N,
// Use an f64 load and a scalar_to_vector for v2f32 loads. This avoids
// scalarizing in 32-bit mode. In 64-bit mode this avoids a int->fp cast
// since type legalization will try to use an i64 load.
- EVT VT = N->getValueType(0);
- assert(VT == MVT::v2f32 && "Unexpected VT");
+ assert(N->getValueType(0) == MVT::v2f32 && "Unexpected VT");
if (!ISD::isNON_EXTLoad(N))
return;
auto *Ld = cast<LoadSDNode>(N);
OpenPOWER on IntegriCloud