Mercurial > projects > ldc
diff gen/tollvm.cpp @ 1501:8b9f236dd051
Build fix for LLVM >= r73431
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Tue, 16 Jun 2009 15:37:40 +0200 |
parents | d9c5f5a43403 |
children | 855f188aab7a |
line wrap: on
line diff
--- a/gen/tollvm.cpp Tue Jun 16 08:57:20 2009 -0600 +++ b/gen/tollvm.cpp Tue Jun 16 15:37:40 2009 +0200 @@ -399,10 +399,10 @@ ////////////////////////////////////////////////////////////////////////////////////////// -const LLType* DtoSize_t() +const LLIntegerType* DtoSize_t() { // the type of size_t does not change once set - static const LLType* t = NULL; + static const LLIntegerType* t = NULL; if (t == NULL) t = (global.params.is64bit) ? LLType::Int64Ty : LLType::Int32Ty; return t; @@ -563,7 +563,7 @@ return llvm::ConstantInt::get(LLType::Int8Ty, i, false); } -llvm::ConstantFP* DtoConstFP(Type* t, long double value) +LLConstant* DtoConstFP(Type* t, long double value) { const LLType* llty = DtoType(t); assert(llty->isFloatingPoint());