From d638039525c71b2ae2e8732ad3d8f38c0e719c77 Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Mon, 2 Nov 2015 22:43:57 +0000 Subject: [PATCH] [PPC64LE] Properly initialize instr-info in PPCVSXSwapRemoval pass Replace some hacky code with the proper way to get at this data. No functional change. llvm-svn: 251848 --- lib/Target/PowerPC/PPCVSXSwapRemoval.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp b/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp index 723121279ad..e86dbbab126 100644 --- a/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp +++ b/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp @@ -220,7 +220,7 @@ public: void PPCVSXSwapRemoval::initialize(MachineFunction &MFParm) { MF = &MFParm; MRI = &MF->getRegInfo(); - TII = static_cast(MF->getSubtarget().getInstrInfo()); + TII = MF->getSubtarget().getInstrInfo(); // An initial vector size of 256 appears to work well in practice. // Small/medium functions with vector content tend not to incur a