[llvm] r204063 - [X86] Fix unused variable warning with NDEBUG from r204058

Adam Nemet anemet at apple.com
Mon Mar 17 10:32:53 PDT 2014


Author: anemet
Date: Mon Mar 17 12:32:53 2014
New Revision: 204063

URL: http://llvm.org/viewvc/llvm-project?rev=204063&view=rev
Log:
[X86] Fix unused variable warning with NDEBUG from r204058

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=204063&r1=204062&r2=204063&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Mon Mar 17 12:32:53 2014
@@ -9227,8 +9227,7 @@ SDValue X86TargetLowering::LowerTRUNCATE
 
 SDValue X86TargetLowering::LowerFP_TO_SINT(SDValue Op,
                                            SelectionDAG &DAG) const {
-  MVT VT = Op.getSimpleValueType();
-  assert(!VT.isVector());
+  assert(!Op.getSimpleValueType().isVector());
 
   std::pair<SDValue,SDValue> Vals = FP_TO_INTHelper(Op, DAG,
     /*IsSigned=*/ true, /*IsReplace=*/ false);





More information about the llvm-commits mailing list