1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

absolute addresses must match pointer size

llvm-svn: 30461
This commit is contained in:
Andrew Lenharth 2006-09-18 17:59:35 +00:00
parent 07ac577a34
commit 00bbd5641b
2 changed files with 2 additions and 1 deletions

View 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.

View 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,