From aed5ea036ab0d531bb54a24f96bc3d4adcd05ab2 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 12 Jan 2019 12:43:53 +0000 Subject: [PATCH] [analyzer] Fix unused variable warnings in Release builds This was just an inlined version of isa. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351007 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/CallEvent.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/StaticAnalyzer/Core/CallEvent.cpp b/lib/StaticAnalyzer/Core/CallEvent.cpp index e26e7de10e..0e7f31502e 100644 --- a/lib/StaticAnalyzer/Core/CallEvent.cpp +++ b/lib/StaticAnalyzer/Core/CallEvent.cpp @@ -1372,12 +1372,9 @@ CallEventManager::getCaller(const StackFrameContext *CalleeCtx, if (CallEventRef<> Out = getCall(CallSite, State, CallerCtx)) return Out; - Stmt::StmtClass SC = CallSite->getStmtClass(); - // All other cases are handled by getCall. - assert(SC == Stmt::CXXConstructExprClass || - SC == Stmt::CXXTemporaryObjectExprClass && - "This is not an inlineable statement"); + assert(isa(CallSite) && + "This is not an inlineable statement"); SValBuilder &SVB = State->getStateManager().getSValBuilder(); const auto *Ctor = cast(CalleeCtx->getDecl()); -- 2.50.1