diff options
author | Chris Lattner <sabre@nondot.org> | 2007-09-04 02:34:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-09-04 02:34:27 +0000 |
commit | fb2eb6941a261ba82e0b2d6262f7e24e79d89d4d (patch) | |
tree | cb6717cef168368bd97e29f37a5fdf5e1d9f78c6 /clang/CodeGen/CodeGenFunction.cpp | |
parent | e15fa6c89c584fb888856f849e31582b6b78890e (diff) | |
download | bcm5719-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.cpp | 4 |
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; |