aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-08 19:55:00 +0000
committerChris Lattner <sabre@nondot.org>2005-01-08 19:55:00 +0000
commite64ff1c4b2ebfa14308613c78073089fc8424f8d (patch)
tree9ea59b6256712cd639bae51480c1a1a16857949c /llvm/lib/CodeGen/MachineFunction.cpp
parent78100c41ca502afde086bca464454bf0f90791d8 (diff)
downloadllvm-e64ff1c4b2ebfa14308613c78073089fc8424f8d.zip
llvm-e64ff1c4b2ebfa14308613c78073089fc8424f8d.tar.gz
llvm-e64ff1c4b2ebfa14308613c78073089fc8424f8d.tar.bz2
Silence warnings from VS
llvm-svn: 19386
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 3862858..f2cf336 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -256,7 +256,8 @@ void MachineFunction::clearSSARegMap() {
/// CreateStackObject - Create a stack object for a value of the specified type.
///
int MachineFrameInfo::CreateStackObject(const Type *Ty, const TargetData &TD) {
- return CreateStackObject(TD.getTypeSize(Ty), TD.getTypeAlignment(Ty));
+ return CreateStackObject((unsigned)TD.getTypeSize(Ty),
+ TD.getTypeAlignment(Ty));
}