forked from OSchip/llvm-project
				
			fix a questionable cast, thanks to Mike Stump for pointing this out.
llvm-svn: 45075
This commit is contained in:
		
							parent
							
								
									dab6bd902e
								
							
						
					
					
						commit
						e3b05fe31b
					
				| 
						 | 
					@ -5302,7 +5302,7 @@ SDOperand X86TargetLowering::LowerTRAMPOLINE(SDOperand Op,
 | 
				
			||||||
    Disp = DAG.getNode(ISD::SUB, MVT::i32, FPtr, Addr);
 | 
					    Disp = DAG.getNode(ISD::SUB, MVT::i32, FPtr, Addr);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    unsigned char MOV32ri = TII->getBaseOpcodeFor(X86::MOV32ri);
 | 
					    unsigned char MOV32ri = TII->getBaseOpcodeFor(X86::MOV32ri);
 | 
				
			||||||
    unsigned char N86Reg  = ((X86RegisterInfo&)RegInfo).getX86RegNum(NestReg);
 | 
					    unsigned char N86Reg  = ((X86RegisterInfo*)RegInfo)->getX86RegNum(NestReg);
 | 
				
			||||||
    OutChains[0] = DAG.getStore(Root, DAG.getConstant(MOV32ri|N86Reg, MVT::i8),
 | 
					    OutChains[0] = DAG.getStore(Root, DAG.getConstant(MOV32ri|N86Reg, MVT::i8),
 | 
				
			||||||
                                Trmp, TrmpSV->getValue(), TrmpSV->getOffset());
 | 
					                                Trmp, TrmpSV->getValue(), TrmpSV->getOffset());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue