diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-11-05 19:26:37 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-11-05 19:26:37 +0000 |
| commit | 35b927e0d3bd3113dfff152425a70363bd213145 (patch) | |
| tree | 183b5f9936f4c64495cc9453ae75476d987a543a /llvm/lib/Target/CBackend/Writer.cpp | |
| parent | 6088f8af16d680668adf4d23fbde5aff08556f58 (diff) | |
| download | bcm5719-llvm-35b927e0d3bd3113dfff152425a70363bd213145.tar.gz bcm5719-llvm-35b927e0d3bd3113dfff152425a70363bd213145.zip | |
Fix a bug in the last patch and convert to && instead of & for logical expr.
llvm-svn: 31463
Diffstat (limited to 'llvm/lib/Target/CBackend/Writer.cpp')
| -rw-r--r-- | llvm/lib/Target/CBackend/Writer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CBackend/Writer.cpp b/llvm/lib/Target/CBackend/Writer.cpp index 34671863db2..c820fcac799 100644 --- a/llvm/lib/Target/CBackend/Writer.cpp +++ b/llvm/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()); |

