aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-10-01 00:21:24 +0000
committerDale Johannesen <dalej@apple.com>2010-10-01 00:21:24 +0000
commitbac4c52131b79bf3c37075baf95edb93338b30c0 (patch)
tree9e2bc074f05ebd9485704e724bd8d34d5fedbc83 /lib/VMCore
parent9efef89b80f3dc25d75869b3aef30ef0e7b21572 (diff)
downloadexternal_llvm-bac4c52131b79bf3c37075baf95edb93338b30c0.zip
external_llvm-bac4c52131b79bf3c37075baf95edb93338b30c0.tar.gz
external_llvm-bac4c52131b79bf3c37075baf95edb93338b30c0.tar.bz2
Attempt to outwit overly smart compiler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Instructions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp
index 754d992..95348d9 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -2462,6 +2462,7 @@ CastInst::getCastOpcode(
if (const VectorType *SrcPTy = dyn_cast<VectorType>(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");