diff options
author | Devang Patel <dpatel@apple.com> | 2008-11-03 23:20:04 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-11-03 23:20:04 +0000 |
commit | b6dc9352b0d8361609c310699ce58a517fdc2264 (patch) | |
tree | 1de682747cc0a713b333746a7a49437f2fddddbc /lib/VMCore/ConstantFold.cpp | |
parent | 8a88a14462db7e8ad96536c89b3ab948b89d0c2b (diff) | |
download | external_llvm-b6dc9352b0d8361609c310699ce58a517fdc2264.zip external_llvm-b6dc9352b0d8361609c310699ce58a517fdc2264.tar.gz external_llvm-b6dc9352b0d8361609c310699ce58a517fdc2264.tar.bz2 |
Fix unused variable warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58653 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFold.cpp')
-rw-r--r-- | lib/VMCore/ConstantFold.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index fcbda21..d84eb2d 100644 --- a/lib/VMCore/ConstantFold.cpp +++ b/lib/VMCore/ConstantFold.cpp @@ -126,6 +126,7 @@ static Constant *FoldBitCast(Constant *V, const Type *DestTy) { if (const VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) { assert(DestPTy->getBitWidth() == SrcTy->getBitWidth() && "Not cast between same sized vectors!"); + SrcTy = NULL; // First, check for null. Undef is already handled. if (isa<ConstantAggregateZero>(V)) return Constant::getNullValue(DestTy); |