From 1154706a6273b835b619a2d7cebc7309c2b7d9bf Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Sat, 21 Mar 2015 03:13:03 +0000 Subject: [PATCH] Simplify the query for a subtarget in the NVPTX pass manager. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232876 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/NVPTX/NVPTXTargetMachine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Target/NVPTX/NVPTXTargetMachine.cpp b/lib/Target/NVPTX/NVPTXTargetMachine.cpp index 2e362a6989a..1b6bc714505 100644 --- a/lib/Target/NVPTX/NVPTXTargetMachine.cpp +++ b/lib/Target/NVPTX/NVPTXTargetMachine.cpp @@ -186,8 +186,7 @@ void NVPTXPassConfig::addIRPasses() { } bool NVPTXPassConfig::addInstSelector() { - const NVPTXSubtarget &ST = - getTM().getSubtarget(); + const NVPTXSubtarget &ST = *getTM().getSubtargetImpl(); addPass(createLowerAggrCopies()); addPass(createAllocaHoisting()); -- 2.11.0