diff options
-rw-r--r-- | lib/Target/PowerPC/PPC32AsmPrinter.cpp | 2 | ||||
-rw-r--r-- | lib/Target/PowerPC/PPCAsmPrinter.cpp | 2 | ||||
-rw-r--r-- | lib/Target/PowerPC/PowerPCAsmPrinter.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPC32AsmPrinter.cpp b/lib/Target/PowerPC/PPC32AsmPrinter.cpp index 891e3e8182..032bf598e9 100644 --- a/lib/Target/PowerPC/PPC32AsmPrinter.cpp +++ b/lib/Target/PowerPC/PPC32AsmPrinter.cpp @@ -294,7 +294,7 @@ void Printer::emitGlobalConstant(const Constant *CV) { return; } } - } else if (CV->getType()->getPrimitiveSize() == 64) { + } else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) { if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { union DU { // Abide by C TBAA rules int64_t UVal; diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index 891e3e8182..032bf598e9 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -294,7 +294,7 @@ void Printer::emitGlobalConstant(const Constant *CV) { return; } } - } else if (CV->getType()->getPrimitiveSize() == 64) { + } else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) { if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { union DU { // Abide by C TBAA rules int64_t UVal; diff --git a/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/lib/Target/PowerPC/PowerPCAsmPrinter.cpp index 891e3e8182..032bf598e9 100644 --- a/lib/Target/PowerPC/PowerPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PowerPCAsmPrinter.cpp @@ -294,7 +294,7 @@ void Printer::emitGlobalConstant(const Constant *CV) { return; } } - } else if (CV->getType()->getPrimitiveSize() == 64) { + } else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) { if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { union DU { // Abide by C TBAA rules int64_t UVal; |