summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-09-04 02:34:27 +0000
committerChris Lattner <sabre@nondot.org>2007-09-04 02:34:27 +0000
commitfb2eb6941a261ba82e0b2d6262f7e24e79d89d4d (patch)
treecb6717cef168368bd97e29f37a5fdf5e1d9f78c6 /clang/CodeGen/CodeGenFunction.cpp
parente15fa6c89c584fb888856f849e31582b6b78890e (diff)
downloadbcm5719-llvm-fb2eb6941a261ba82e0b2d6262f7e24e79d89d4d.tar.gz
bcm5719-llvm-fb2eb6941a261ba82e0b2d6262f7e24e79d89d4d.zip
eliminate some VC++ warnings, patch contributed by Hartmut Kaiser
llvm-svn: 41692
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/CodeGen/CodeGenFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp
index 389bd05a70d..d540ea7aa80 100644
--- a/clang/CodeGen/CodeGenFunction.cpp
+++ b/clang/CodeGen/CodeGenFunction.cpp
@@ -51,9 +51,9 @@ bool CodeGenFunction::hasAggregateLLVMType(QualType T) {
void CodeGenFunction::GenerateCode(const FunctionDecl *FD) {
LLVMIntTy = ConvertType(getContext().IntTy);
- LLVMPointerWidth =
+ LLVMPointerWidth = static_cast<unsigned>(
getContext().getTypeSize(getContext().getPointerType(getContext().VoidTy),
- SourceLocation());
+ SourceLocation()));
CurFn = cast<llvm::Function>(CGM.GetAddrOfGlobalDecl(FD));
CurFuncDecl = FD;
OpenPOWER on IntegriCloud