r351007 - [analyzer] Fix unused variable warnings in Release builds
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 12 04:43:53 PST 2019
Author: d0k
Date: Sat Jan 12 04:43:53 2019
New Revision: 351007
URL: http://llvm.org/viewvc/llvm-project?rev=351007&view=rev
Log:
[analyzer] Fix unused variable warnings in Release builds
This was just an inlined version of isa<CXXConstructExpr>. NFC.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/CallEvent.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/CallEvent.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/CallEvent.cpp?rev=351007&r1=351006&r2=351007&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/CallEvent.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/CallEvent.cpp Sat Jan 12 04:43:53 2019
@@ -1372,12 +1372,9 @@ CallEventManager::getCaller(const StackF
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());
More information about the cfe-commits
mailing list