mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 09:33:27 +01:00
Build fix for LLVM r75546 and r75559
This commit is contained in:
@@ -557,7 +557,7 @@ LLConstant* DtoConstFP(Type* t, long double value)
|
||||
assert(llty->isFloatingPoint());
|
||||
|
||||
if(llty == LLType::FloatTy || llty == LLType::DoubleTy)
|
||||
return LLConstantFP::get(llty, value);
|
||||
return gIR->context().getConstantFP(llty, value);
|
||||
else if(llty == LLType::X86_FP80Ty) {
|
||||
uint64_t bits[] = {0, 0};
|
||||
bits[0] = *(uint64_t*)&value;
|
||||
|
||||
Reference in New Issue
Block a user