forked from OSchip/llvm-project
Fix a broken index left over from before this function was converted to
handle memcpy and memmove. Spotted by Nico. llvm-svn: 132902
This commit is contained in:
parent
bffdbd288a
commit
ff455bbc3c
|
@ -1847,7 +1847,7 @@ void Sema::CheckMemsetcpymoveArguments(const CallExpr *Call,
|
|||
continue;
|
||||
}
|
||||
|
||||
SourceRange ArgRange = Call->getArg(0)->getSourceRange();
|
||||
SourceRange ArgRange = Call->getArg(ArgIdx)->getSourceRange();
|
||||
DiagRuntimeBehavior(
|
||||
Dest->getExprLoc(), Dest,
|
||||
PDiag(diag::note_bad_memaccess_silence)
|
||||
|
|
Loading…
Reference in New Issue