[llvm] r233978 - Fix unused variable in NDEBUG builds
Reid Kleckner
reid at kleckner.net
Thu Apr 2 14:43:22 PDT 2015
Author: rnk
Date: Thu Apr 2 16:43:22 2015
New Revision: 233978
URL: http://llvm.org/viewvc/llvm-project?rev=233978&view=rev
Log:
Fix unused variable in NDEBUG builds
Modified:
llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/WinEHPrepare.cpp?rev=233978&r1=233977&r2=233978&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/WinEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/WinEHPrepare.cpp Thu Apr 2 16:43:22 2015
@@ -883,6 +883,7 @@ CloningDirector::CloningAction WinEHCatc
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;
More information about the llvm-commits
mailing list