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:
parent
07ac577a34
commit
00bbd5641b
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user