From 64a7c828cb7c6c389f05fd4be51ae2ef6a71b7d9 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sun, 27 Jul 2014 01:45:49 +0000 Subject: [PATCH] [x86] Sink a variable only used by asserts into the asserts. Should fix some -Werror bots, sorry for the noise. llvm-svn: 214043 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index ff59883..38a6ba0 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -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())) -- 2.7.4