[cfe-commits] r132902 - /cfe/trunk/lib/Sema/SemaChecking.cpp
Chandler Carruth
chandlerc at gmail.com
Sun Jun 12 22:00:35 PDT 2011
Author: chandlerc
Date: Mon Jun 13 00:00:35 2011
New Revision: 132902
URL: http://llvm.org/viewvc/llvm-project?rev=132902&view=rev
Log:
Fix a broken index left over from before this function was converted to
handle memcpy and memmove. Spotted by Nico.
Modified:
cfe/trunk/lib/Sema/SemaChecking.cpp
Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=132902&r1=132901&r2=132902&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Mon Jun 13 00:00:35 2011
@@ -1847,7 +1847,7 @@
continue;
}
- SourceRange ArgRange = Call->getArg(0)->getSourceRange();
+ SourceRange ArgRange = Call->getArg(ArgIdx)->getSourceRange();
DiagRuntimeBehavior(
Dest->getExprLoc(), Dest,
PDiag(diag::note_bad_memaccess_silence)
More information about the cfe-commits
mailing list