OSDN Git Service

[Sparc] Fix build error introduced by rL267545.
authorMarcin Koscielnicki <koriakin@0x04.net>
Tue, 26 Apr 2016 10:43:47 +0000 (10:43 +0000)
committerMarcin Koscielnicki <koriakin@0x04.net>
Tue, 26 Apr 2016 10:43:47 +0000 (10:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267549 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcInstrInfo.cpp

index 175d4b7..996afc4 100644 (file)
@@ -495,7 +495,7 @@ unsigned SparcInstrInfo::getGlobalBaseReg(MachineFunction *MF) const
 bool SparcInstrInfo::expandPostRAPseudo(MachineBasicBlock::iterator MI) const {
   switch (MI->getOpcode()) {
   case TargetOpcode::LOAD_STACK_GUARD: {
-    assert(Subtarget->isTargetLinux() &&
+    assert(Subtarget.isTargetLinux() &&
            "Only Linux target is expected to contain LOAD_STACK_GUARD");
     // offsetof(tcbhead_t, stack_guard) from sysdeps/sparc/nptl/tls.h in glibc.
     const int64_t Offset = Subtarget.is64Bit() ? 0x28 : 0x14;