forked from OSchip/llvm-project
[clang][StaticAnalyzer] Fix unused variable warning for debug builds
This commit is contained in:
parent
c755157de9
commit
0cd4d47cfe
|
@ -479,8 +479,7 @@ static void addParameterValuesToBindings(const StackFrameContext *CalleeCtx,
|
|||
unsigned Idx = 0;
|
||||
ArrayRef<ParmVarDecl*>::iterator I = parameters.begin(), E = parameters.end();
|
||||
for (; I != E && Idx < NumArgs; ++I, ++Idx) {
|
||||
const ParmVarDecl *ParamDecl = *I;
|
||||
assert(ParamDecl && "Formal parameter has no decl?");
|
||||
assert(*I && "Formal parameter has no decl?");
|
||||
|
||||
// TODO: Support allocator calls.
|
||||
if (Call.getKind() != CE_CXXAllocator)
|
||||
|
|
Loading…
Reference in New Issue