From 92185fdb9f7d5e717a6eb6cf83328001e8dbc3fa Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 29 Jan 2015 00:19:37 +0000 Subject: [PATCH] Small cleanup in ARMFastISel initialization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227400 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMFastISel.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index dcc0b9847f8..375d3944b9f 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -93,12 +93,11 @@ class ARMFastISel final : public FastISel { explicit ARMFastISel(FunctionLoweringInfo &funcInfo, const TargetLibraryInfo *libInfo) : FastISel(funcInfo, libInfo), + Subtarget( + &static_cast(funcInfo.MF->getSubtarget())), M(const_cast(*funcInfo.Fn->getParent())), - TM(funcInfo.MF->getTarget()), - TII(*funcInfo.MF->getSubtarget().getInstrInfo()), - TLI(*funcInfo.MF->getSubtarget().getTargetLowering()) { - Subtarget = - &static_cast(funcInfo.MF->getSubtarget()); + TM(funcInfo.MF->getTarget()), TII(*Subtarget->getInstrInfo()), + TLI(*Subtarget->getTargetLowering()) { AFI = funcInfo.MF->getInfo(); isThumb2 = AFI->isThumbFunction(); Context = &funcInfo.Fn->getContext(); -- 2.34.1