aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-11-21 20:00:59 +0000
committerDevang Patel <dpatel@apple.com>2008-11-21 20:00:59 +0000
commit59500c8f9a76b3386329b6f837255c16f4e8b61b (patch)
tree6bad7385b65142eb5806cdeafcc6ea5f121cab35 /lib/VMCore
parenta5c05aad57556eee4cea43f33234312320a0a219 (diff)
downloadexternal_llvm-59500c8f9a76b3386329b6f837255c16f4e8b61b.zip
external_llvm-59500c8f9a76b3386329b6f837255c16f4e8b61b.tar.gz
external_llvm-59500c8f9a76b3386329b6f837255c16f4e8b61b.tar.bz2
Silence unused variable warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59841 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 3e08b59..66caf5f 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -2204,6 +2204,7 @@ CastInst::getCastOpcode(
if (const VectorType *SrcPTy = dyn_cast<VectorType>(SrcTy)) {
assert(DestPTy->getBitWidth() == SrcPTy->getBitWidth() &&
"Casting vector to vector of different widths");
+ SrcPTy = NULL;
return BitCast; // vector -> vector
} else if (DestPTy->getBitWidth() == SrcBits) {
return BitCast; // float/int -> vector