Merge pull request #1190 from pSub/fix-build-with-gcc5

Fix build with gcc5
This commit is contained in:
Dmitry Babokin
2016-03-24 20:11:36 +03:00

View File

@@ -1641,7 +1641,7 @@ void CWriter::printConstant(llvm::Constant *CPV, bool Static) {
V = Tmp.convertToDouble(); V = Tmp.convertToDouble();
} }
if (isnan(V)) { if (std::isnan(V)) {
// The value is NaN // The value is NaN
// FIXME the actual NaN bits should be emitted. // FIXME the actual NaN bits should be emitted.
@@ -1665,7 +1665,7 @@ void CWriter::printConstant(llvm::Constant *CPV, bool Static) {
else else
Out << "LLVM_NAN" << (Val == QuietNaN ? "" : "S") << "(\"" Out << "LLVM_NAN" << (Val == QuietNaN ? "" : "S") << "(\""
<< Buffer << "\") /*nan*/ "; << Buffer << "\") /*nan*/ ";
} else if (isinf(V)) { } else if (std::isinf(V)) {
// The value is Inf // The value is Inf
if (V < 0) Out << '-'; if (V < 0) Out << '-';
Out << "LLVM_INF" << Out << "LLVM_INF" <<