From 7d7943313641459fb70a80f8d0bde09a791987b9 Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Thu, 9 Aug 2018 21:15:33 +0000 Subject: [PATCH] [LICM] Suppress a compiler warning noticed by one of the bots llvm-svn: 339388 --- llvm/lib/Transforms/Scalar/LICM.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index dbb9bc6..4150d9f 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -697,6 +697,7 @@ bool llvm::canSinkOrHoistInst(Instruction &I, AAResults *AA, DominatorTree *DT, if (!UniqueI) // other memory op, give up return false; + (void)FI; //suppress unused variable warning assert(UniqueI == FI && "AS must contain FI"); return true; } -- 2.7.4