diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-08 19:42:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-08 19:42:22 +0000 |
commit | fdfe3e49fe0509bfb990e005101f798ea053fb35 (patch) | |
tree | f0e5da5f6497e8b4d6ba5f9446e20a14c55f7531 /llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | |
parent | 47f395cd8543dee31f93f5cf94adabfd700a2bc0 (diff) | |
download | bcm5719-llvm-fdfe3e49fe0509bfb990e005101f798ea053fb35.tar.gz bcm5719-llvm-fdfe3e49fe0509bfb990e005101f798ea053fb35.zip |
Fix uint64_t -> unsigned VS warnings.
llvm-svn: 19381
Diffstat (limited to 'llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp index e29bad53c19..5afcd70bd91 100644 --- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -73,7 +73,7 @@ bool DSE::runOnBasicBlock(BasicBlock &BB) { unsigned Size = ~0U; if (!AI->isArrayAllocation() && AI->getType()->getElementType()->isSized()) - Size = TD.getTypeSize(AI->getType()->getElementType()); + Size = (unsigned)TD.getTypeSize(AI->getType()->getElementType()); KillLocs.add(AI, Size); } } @@ -106,7 +106,7 @@ bool DSE::runOnBasicBlock(BasicBlock &BB) { // the stored location is already in the tracker, then this is a dead // store. We can just delete it here, but while we're at it, we also // delete any trivially dead expression chains. - unsigned ValSize = TD.getTypeSize(I->getOperand(0)->getType()); + unsigned ValSize = (unsigned)TD.getTypeSize(I->getOperand(0)->getType()); Value *Ptr = I->getOperand(1); if (AliasSet *AS = KillLocs.getAliasSetForPointerIfExists(Ptr, ValSize)) |