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>

llvm-svn: 15223
This commit is contained in:
Chris Lattner 2004-07-25 22:36:35 +00:00
parent 4b7a38d455
commit 21a015c12f
1 changed files with 2 additions and 2 deletions

View File

@ -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 << "-";