From a9767f6218bf5d56953ae28b0531f6d558bf36c2 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 15 Jun 2006 08:10:56 +0000 Subject: [PATCH] Assert. Rather than silently stop printing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28794 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 269b9586070..b3e27c9970f 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter.cpp @@ -536,6 +536,8 @@ void AsmPrinter::EmitGlobalConstant(const Constant *CV) { break; case Type::PointerTyID: if (TD->getPointerSize() == 8) { + assert(Data64bitsDirective && + "Target cannot handle 64-bit pointer exprs!"); O << Data64bitsDirective; break; } -- 2.11.0