absolute addresses must match pointer size
authorAndrew Lenharth <andrewl@lenharth.org>
Mon, 18 Sep 2006 17:59:35 +0000 (17:59 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Mon, 18 Sep 2006 17:59:35 +0000 (17:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30461 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index f6b4bfcbfe357a520f9c8417fd61503e36619827..72650ba183cbf40d0ccba94984d84992306d49fe 100644 (file)
@@ -714,6 +714,7 @@ void AsmPrinter::printInlineAsm(const MachineInstr *MI) const {
 
         if (OpNo >= MI->getNumOperands()) {
           Error = true;
+         std::cerr << "Too many operands\n";
         } else {
           unsigned OpFlags = MI->getOperand(OpNo).getImmedValue();
           ++OpNo;  // Skip over the ID number.
index c9b8f60e77777ea85fd95e75e39a968d60bfbfc2..6515c9931f838629055c23346cad0d2badf5779a 100644 (file)
@@ -866,7 +866,7 @@ void SelectionDAGLowering::visitJumpTable(SelectionDAGISel::JumpTable &JT) {
                               DAG.getConstant(EntrySize, PTy));
   SDOperand TAB = DAG.getJumpTable(JT.JTI,PTy);
   SDOperand ADD = DAG.getNode(ISD::ADD, PTy, IDX, TAB);
-  SDOperand LD  = DAG.getLoad(MVT::i32, Copy.getValue(1), ADD,
+  SDOperand LD  = DAG.getLoad(PTy, Copy.getValue(1), ADD,
                               DAG.getSrcValue(0));
   if (TLI.getTargetMachine().getRelocationModel() == Reloc::PIC_) {
     ADD = DAG.getNode(ISD::ADD, PTy,