From: Dale Johannesen Date: Fri, 1 Oct 2010 00:21:24 +0000 (+0000) Subject: Attempt to outwit overly smart compiler. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bac4c52131b79bf3c37075baf95edb93338b30c0;p=oota-llvm.git Attempt to outwit overly smart compiler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115251 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 754d992e6b0..95348d91f23 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -2462,6 +2462,7 @@ CastInst::getCastOpcode( if (const VectorType *SrcPTy = dyn_cast(SrcTy)) { assert(SrcPTy->getBitWidth()==64 && "Casting vector of wrong width to X86_MMX"); + SrcPTy = NULL; // inhibit compiler warning return BitCast; // 64-bit vector to MMX } else { assert(!"Illegal cast to X86_MMX");