From 90ff80e32973e7452b16a04ed8cfdc5e54998a16 Mon Sep 17 00:00:00 2001 From: Kristof Beyls Date: Fri, 10 Jan 2014 14:20:45 +0000 Subject: [PATCH] Silence unused variable warning for non-asserting builds that was introduced in r198937. llvm-svn: 198941 --- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp index 167281c57e8a..0d9c516660ad 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -30,8 +30,8 @@ using namespace llvm; static TargetLoweringObjectFile *createTLOF(AArch64TargetMachine &TM) { - const AArch64Subtarget *Subtarget = &TM.getSubtarget(); - assert (Subtarget->isTargetELF() && "unknown subtarget type"); + assert (TM.getSubtarget().isTargetELF() && + "unknown subtarget type"); return new AArch64ElfTargetObjectFile(); }