Fix unused variable in NDEBUG builds
authorReid Kleckner <reid@kleckner.net>
Thu, 2 Apr 2015 21:43:22 +0000 (21:43 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 2 Apr 2015 21:43:22 +0000 (21:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233978 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/WinEHPrepare.cpp

index 94d522faca42d19f8d3999c6e2b9a1775265f90a..b16da712cc9e48f21182b2791b97731d410e0839 100644 (file)
@@ -883,6 +883,7 @@ CloningDirector::CloningAction WinEHCatchDirector::handleBeginCatch(
   if (isa<ConstantPointerNull>(ExceptionObjectVar))
     return CloningDirector::SkipInstruction;
   AllocaInst *AI = dyn_cast<AllocaInst>(ExceptionObjectVar);
+  (void)AI;
   assert(AI && AI->isStaticAlloca() && "catch parameter is not static alloca");
   Materializer.escapeCatchObject(ExceptionObjectVar);
   return CloningDirector::SkipInstruction;