From: Chandler Carruth Date: Sun, 27 Jul 2014 01:45:49 +0000 (+0000) Subject: [x86] Sink a variable only used by asserts into the asserts. Should fix X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33153513fb353feb8e66249d52e1b407be45f491;p=llvm [x86] Sink a variable only used by asserts into the asserts. Should fix some -Werror bots, sorry for the noise. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214043 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index ff598835404..38a6ba0d91f 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/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()))