summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-06-15 08:10:56 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-06-15 08:10:56 +0000
commita9767f6218bf5d56953ae28b0531f6d558bf36c2 (patch)
tree2acf90e7641f405867d795b0a77e5b19c685ea35 /lib/CodeGen
parentf4432fac1425a590dd0e725ed3dd626cf37e1a37 (diff)
downloadllvm-a9767f6218bf5d56953ae28b0531f6d558bf36c2.tar.gz
llvm-a9767f6218bf5d56953ae28b0531f6d558bf36c2.tar.bz2
llvm-a9767f6218bf5d56953ae28b0531f6d558bf36c2.tar.xz
Assert. Rather than silently stop printing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index 269b958607..b3e27c9970 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;
}