[x86] Sink a variable only used by asserts into the asserts. Should fix
authorChandler Carruth <chandlerc@gmail.com>
Sun, 27 Jul 2014 01:45:49 +0000 (01:45 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 27 Jul 2014 01:45:49 +0000 (01:45 +0000)
some -Werror bots, sorry for the noise.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214043 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index ff598835404c284cc682c97b8e82c87347181991..38a6ba0d91ff622fa2de340987685b9ca13105b2 100644 (file)
@@ -18871,9 +18871,9 @@ static bool combineX86ShufflesRecursively(SDValue Op, SDValue Root,
   if (VT.getSizeInBits() != 128)
     return false;
 
-  MVT RootVT = Root.getSimpleValueType();
-  assert(RootVT.isVector() && "Shuffles operate on vector types!");
-  assert(VT.getSizeInBits() == RootVT.getSizeInBits() &&
+  assert(Root.getSimpleValueType().isVector() &&
+         "Shuffles operate on vector types!");
+  assert(VT.getSizeInBits() == Root.getSimpleValueType().getSizeInBits() &&
          "Can only combine shuffles of the same vector register size.");
 
   if (!isTargetShuffle(Op.getOpcode()))