From fb2eb6941a261ba82e0b2d6262f7e24e79d89d4d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 4 Sep 2007 02:34:27 +0000 Subject: eliminate some VC++ warnings, patch contributed by Hartmut Kaiser llvm-svn: 41692 --- clang/CodeGen/CodeGenFunction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/CodeGen/CodeGenFunction.cpp') 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( getContext().getTypeSize(getContext().getPointerType(getContext().VoidTy), - SourceLocation()); + SourceLocation())); CurFn = cast(CGM.GetAddrOfGlobalDecl(FD)); CurFuncDecl = FD; -- cgit v1.2.3