projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9efef89
)
Attempt to outwit overly smart compiler.
author
Dale Johannesen
<dalej@apple.com>
Fri, 1 Oct 2010 00:21:24 +0000
(
00:21
+0000)
committer
Dale Johannesen
<dalej@apple.com>
Fri, 1 Oct 2010 00:21:24 +0000
(
00:21
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115251
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Instructions.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Instructions.cpp
b/lib/VMCore/Instructions.cpp
index 754d992e6b087bbde9a33a94a89f43f5b92b1401..95348d91f23113c59626832e84ee793cabee397c 100644
(file)
--- 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");