aboutsummaryrefslogtreecommitdiff
path: root/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
commit28696bee024805a6b191cfe12e1a24784dae8aa7 (patch)
tree8a4c77fe0f90bec16d616f36e97cc9f288f7255e /lib/CodeGen/MachineFunction.cpp
parent5e5fb942e6bcdb5436c60f0343cefaa73b82d2f8 (diff)
Silence warnings from VS
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r--lib/CodeGen/MachineFunction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index 3862858bc7..f2cf33642e 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/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));
}