From: Simon Pilgrim Date: Sun, 11 Jun 2017 12:49:29 +0000 (+0000) Subject: Fix unused variable warning on non-debug EXPENSIVE_CHECKS builds X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=415e36dc3694f16e720287ff476e0f39a19a8c7d;p=llvm 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 --- 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();