mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
Temporarily disable this code, as it is emitting LLVM_NAN("nan") which results in a call to the
glibc 'nan' function because the initializer is not a string. This breaks when used in a global initializer. Try compiling this testcase for example: %X = global float <some nan value> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15223 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f847432f77
commit
a9d790c831
@ -570,9 +570,9 @@ void CWriter::printConstant(Constant *CPV) {
|
||||
if (IsNAN(FPC->getValue())) {
|
||||
// The value is NaN
|
||||
if (FPC->getType() == Type::FloatTy)
|
||||
Out << "LLVM_NANF(\"" << Num << "\") /*nan*/ ";
|
||||
Out << "LLVM_NANF(\"0\") /*nan*/ ";
|
||||
else
|
||||
Out << "LLVM_NAN(\"" << Num << "\") /*nan*/ ";
|
||||
Out << "LLVM_NAN(\"0\") /*nan*/ ";
|
||||
} else if (IsInf(FPC->getValue())) {
|
||||
// The value is Inf
|
||||
if (FPC->getValue() < 0) Out << "-";
|
||||
|
@ -570,9 +570,9 @@ void CWriter::printConstant(Constant *CPV) {
|
||||
if (IsNAN(FPC->getValue())) {
|
||||
// The value is NaN
|
||||
if (FPC->getType() == Type::FloatTy)
|
||||
Out << "LLVM_NANF(\"" << Num << "\") /*nan*/ ";
|
||||
Out << "LLVM_NANF(\"0\") /*nan*/ ";
|
||||
else
|
||||
Out << "LLVM_NAN(\"" << Num << "\") /*nan*/ ";
|
||||
Out << "LLVM_NAN(\"0\") /*nan*/ ";
|
||||
} else if (IsInf(FPC->getValue())) {
|
||||
// The value is Inf
|
||||
if (FPC->getValue() < 0) Out << "-";
|
||||
|
Loading…
Reference in New Issue
Block a user