From 2aa0e649bfc0157ea08a1ba8f8c9e905ddb581b1 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sat, 13 Sep 2008 01:55:59 +0000 Subject: [PATCH] Fix random abort. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56184 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMCodeEmitter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Target/ARM/ARMCodeEmitter.cpp b/lib/Target/ARM/ARMCodeEmitter.cpp index ec585fb8555..cd79722ddcd 100644 --- a/lib/Target/ARM/ARMCodeEmitter.cpp +++ b/lib/Target/ARM/ARMCodeEmitter.cpp @@ -184,8 +184,10 @@ unsigned ARMCodeEmitter::getMachineOpValue(const MachineInstr &MI, emitJumpTableAddress(MO.getIndex(), ARM::reloc_arm_relative); else if (MO.isMachineBasicBlock()) emitMachineBasicBlock(MO.getMBB()); - - abort(); + else { + cerr << "ERROR: Unknown type of MachineOperand: " << MO << "\n"; + abort(); + } return 0; }