From: Chris Lattner Date: Sun, 16 Dec 2007 20:26:54 +0000 (+0000) Subject: fix a questionable cast, thanks to Mike Stump for pointing this out. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=48b0133b8393ca3ff09bc1c55250eb11d4bcaf04;p=oota-llvm.git fix a questionable cast, thanks to Mike Stump for pointing this out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45075 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index ed1df4dc2c6..79aaaebb01b 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -5302,7 +5302,7 @@ SDOperand X86TargetLowering::LowerTRAMPOLINE(SDOperand Op, Disp = DAG.getNode(ISD::SUB, MVT::i32, FPtr, Addr); 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), Trmp, TrmpSV->getValue(), TrmpSV->getOffset());