diff options
author | Hartmut Kaiser <hartmut.kaiser@gmail.com> | 2007-10-17 15:00:17 +0000 |
---|---|---|
committer | Hartmut Kaiser <hartmut.kaiser@gmail.com> | 2007-10-17 15:00:17 +0000 |
commit | 7078da8e587d201765f293ed0ef0b63b2ad15deb (patch) | |
tree | fe79a326724f5fb391bbfba84ce46d4e40f129a1 /clang/CodeGen/CodeGenModule.cpp | |
parent | ec8a8d1f51bcf055c340a3892618073fb655cae8 (diff) | |
download | bcm5719-llvm-7078da8e587d201765f293ed0ef0b63b2ad15deb.tar.gz bcm5719-llvm-7078da8e587d201765f293ed0ef0b63b2ad15deb.zip |
Updated VC++ build system.
Silenced some VC++ warnings.
Had to rephrase a partial specialization of the IntrospectionTrait struct in SerializationTest.cpp, please review.
Added a compiler specific workaround in IdentifierTable.h. Is that the way to fix this kind of issues?
llvm-svn: 43074
Diffstat (limited to 'clang/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenModule.cpp b/clang/CodeGen/CodeGenModule.cpp index e14b738a314..8cb138ebff5 100644 --- a/clang/CodeGen/CodeGenModule.cpp +++ b/clang/CodeGen/CodeGenModule.cpp @@ -67,7 +67,7 @@ void CodeGenModule::EmitGlobalVar(const FileVarDecl *D) { if (D->getInit() == 0) { Init = llvm::Constant::getNullValue(GV->getType()->getElementType()); } else if (D->getType()->isIntegerType()) { - llvm::APSInt Value(static_cast<unsigned>( + llvm::APSInt Value(static_cast<uint32_t>( getContext().getTypeSize(D->getInit()->getType(), SourceLocation()))); if (D->getInit()->isIntegerConstantExpr(Value, Context)) Init = llvm::ConstantInt::get(Value); |