diff options
author | Richard Trieu <rtrieu@google.com> | 2018-10-11 22:42:41 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2018-10-11 22:42:41 +0000 |
commit | dfd1760b5f09470175638cc97ae033e750b92703 (patch) | |
tree | 5ddd67f61afb886b477881cce3a953494bebf097 /llvm/lib/Target | |
parent | 8d0b74c9405316e2f6c2f11e093c0109e4cc8038 (diff) | |
download | bcm5719-llvm-dfd1760b5f09470175638cc97ae033e750b92703.tar.gz bcm5719-llvm-dfd1760b5f09470175638cc97ae033e750b92703.zip |
Inline variable into assert to avoid unused variable warning.
llvm-svn: 344308
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 3 |
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); |