From 415e36dc3694f16e720287ff476e0f39a19a8c7d Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 11 Jun 2017 12:49:29 +0000 Subject: [PATCH] Fix unused variable warning on non-debug EXPENSIVE_CHECKS builds git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305163 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/MemorySSA.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Analysis/MemorySSA.cpp b/lib/Analysis/MemorySSA.cpp index 4aa9cfa51d3..6ed2d452609 100644 --- a/lib/Analysis/MemorySSA.cpp +++ b/lib/Analysis/MemorySSA.cpp @@ -1,4 +1,4 @@ -//===-- MemorySSA.cpp - Memory SSA Builder---------------------------===// +//===-- MemorySSA.cpp - Memory SSA Builder---------------------------===// // // The LLVM Compiler Infrastructure // @@ -1956,6 +1956,7 @@ MemoryAccess *MemorySSA::CachingWalker::getClobberingMemoryAccess( #ifdef EXPENSIVE_CHECKS MemoryAccess *NewNoCache = Walker.findClobber(StartingAccess, Q); assert(NewNoCache == New && "Cache made us hand back a different result?"); + (void)NewNoCache; #endif if (AutoResetWalker) resetClobberWalker(); -- 2.50.1