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 | 652f3cf76f7b1a8141e65a902b3e18082b34efed (patch) | |
tree | 71723053792b759e1fe314092f19972f9e3285d5 /lib/Transforms/Scalar/DeadStoreElimination.cpp | |
parent | d4bc564531ec9d7db7ec6630bc89f411f730cda1 (diff) |
Fix uint64_t -> unsigned VS warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/DeadStoreElimination.cpp')
-rw-r--r-- | lib/Transforms/Scalar/DeadStoreElimination.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/DeadStoreElimination.cpp b/lib/Transforms/Scalar/DeadStoreElimination.cpp index e29bad53c1..5afcd70bd9 100644 --- a/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/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)) |