File tree 1 file changed +2
-4
lines changed
clang/lib/Analysis/FlowSensitive
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -213,20 +213,18 @@ Environment Environment::pushCall(const CallExpr *Call) const {
213
213
214
214
const auto *FuncDecl = Call->getDirectCallee ();
215
215
assert (FuncDecl != nullptr );
216
- const auto *Body = FuncDecl->getBody ();
217
- assert (Body != nullptr );
216
+ assert (FuncDecl->getBody () != nullptr );
218
217
// FIXME: In order to allow the callee to reference globals, we probably need
219
218
// to call `initGlobalVars` here in some way.
220
219
221
220
auto ParamIt = FuncDecl->param_begin ();
222
- auto ParamEnd = FuncDecl->param_end ();
223
221
auto ArgIt = Call->arg_begin ();
224
222
auto ArgEnd = Call->arg_end ();
225
223
226
224
// FIXME: Parameters don't always map to arguments 1:1; examples include
227
225
// overloaded operators implemented as member functions, and parameter packs.
228
226
for (; ArgIt != ArgEnd; ++ParamIt, ++ArgIt) {
229
- assert (ParamIt != ParamEnd );
227
+ assert (ParamIt != FuncDecl-> param_end () );
230
228
231
229
const VarDecl *Param = *ParamIt;
232
230
const Expr *Arg = *ArgIt;
You can’t perform that action at this time.
0 commit comments