aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CBackend
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-05 19:26:37 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-05 19:26:37 +0000
commitbcf81242df7983b8e86bec179c4fa04265b26db2 (patch)
tree73ef32dad7ff8bfbee6c058d060453f6d33a752a /lib/Target/CBackend
parent7c475c5d12f3b8d6575ca330001d6a7f6e85f66a (diff)
downloadexternal_llvm-bcf81242df7983b8e86bec179c4fa04265b26db2.zip
external_llvm-bcf81242df7983b8e86bec179c4fa04265b26db2.tar.gz
external_llvm-bcf81242df7983b8e86bec179c4fa04265b26db2.tar.bz2
Fix a bug in the last patch and convert to && instead of & for logical expr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r--lib/Target/CBackend/CBackend.cpp4
-rw-r--r--lib/Target/CBackend/Writer.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 3467186..c820fca 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -534,7 +534,7 @@ void CWriter::printConstantPacked(ConstantPacked *CP) {
// only deal in IEEE FP).
//
static bool isFPCSafeToPrint(const ConstantFP *CFP) {
-#if HAVE_PRINTF_A & ENABLED_CBE_PRINTF_A
+#if HAVE_PRINTF_A && ENABLE_CBE_PRINTF_A
char Buffer[100];
sprintf(Buffer, "%a", CFP->getValue());
@@ -726,7 +726,7 @@ void CWriter::printConstant(Constant *CPV) {
<< " /*inf*/ ";
} else {
std::string Num;
-#if HAVE_PRINTF_A & ENABLE_CBE_PRINTF_A
+#if HAVE_PRINTF_A && ENABLE_CBE_PRINTF_A
// Print out the constant as a floating point number.
char Buffer[100];
sprintf(Buffer, "%a", FPC->getValue());
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp
index 3467186..c820fca 100644
--- a/lib/Target/CBackend/Writer.cpp
+++ b/lib/Target/CBackend/Writer.cpp
@@ -534,7 +534,7 @@ void CWriter::printConstantPacked(ConstantPacked *CP) {
// only deal in IEEE FP).
//
static bool isFPCSafeToPrint(const ConstantFP *CFP) {
-#if HAVE_PRINTF_A & ENABLED_CBE_PRINTF_A
+#if HAVE_PRINTF_A && ENABLE_CBE_PRINTF_A
char Buffer[100];
sprintf(Buffer, "%a", CFP->getValue());
@@ -726,7 +726,7 @@ void CWriter::printConstant(Constant *CPV) {
<< " /*inf*/ ";
} else {
std::string Num;
-#if HAVE_PRINTF_A & ENABLE_CBE_PRINTF_A
+#if HAVE_PRINTF_A && ENABLE_CBE_PRINTF_A
// Print out the constant as a floating point number.
char Buffer[100];
sprintf(Buffer, "%a", FPC->getValue());