From: Benjamin Kramer Date: Sat, 12 Jan 2019 12:43:53 +0000 (+0000) Subject: [analyzer] Fix unused variable warnings in Release builds X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aed5ea036ab0d531bb54a24f96bc3d4adcd05ab2;p=clang [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 --- 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());