diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2019-01-12 12:43:53 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2019-01-12 12:43:53 +0000 |
commit | aed5ea036ab0d531bb54a24f96bc3d4adcd05ab2 (patch) | |
tree | 9f568348f4918c852d850fd8925821d6646de1d5 | |
parent | ffb4747faff3c46d30fc9d642342824400139b62 (diff) |
[analyzer] Fix unused variable warnings in Release builds
This was just an inlined version of isa<CXXConstructExpr>. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351007 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/StaticAnalyzer/Core/CallEvent.cpp | 7 |
1 files 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<CXXConstructExpr>(CallSite) && + "This is not an inlineable statement"); SValBuilder &SVB = State->getStateManager().getSValBuilder(); const auto *Ctor = cast<CXXMethodDecl>(CalleeCtx->getDecl()); |