Use the ARMConstantPoolMBB class to handle the MBB values.
[oota-llvm.git] / lib / Target / ARM / ARMAsmPrinter.cpp
index f4389db0a3e870172093aa710c377410b4fa5ffa..81a36d16d77ed46b59abd5fd19d22538b71b0558 100644 (file)
@@ -856,7 +856,7 @@ EmitMachineConstantPoolValue(MachineConstantPoolValue *MCPV) {
     const GlobalValue *GV = cast<ARMConstantPoolConstant>(ACPV)->getGV();
     MCSym = GetARMGVSymbol(GV);
   } else if (ACPV->isMachineBasicBlock()) {
-    const MachineBasicBlock *MBB = ACPV->getMBB();
+    const MachineBasicBlock *MBB = cast<ARMConstantPoolMBB>(ACPV)->getMBB();
     MCSym = MBB->getSymbol();
   } else {
     assert(ACPV->isExtSymbol() && "unrecognized constant pool value");