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:
Chandler Carruth 2011-06-13 05:00:35 +00:00
parent bffdbd288a
commit ff455bbc3c
1 changed files with 1 additions and 1 deletions

View File

@ -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)