[llvm-commits] [compiler-rt] r163879 - /compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc
Kostya Serebryany
kcc at google.com
Thu Sep 13 23:52:46 PDT 2012
Author: kcc
Date: Fri Sep 14 01:52:46 2012
New Revision: 163879
URL: http://llvm.org/viewvc/llvm-project?rev=163879&view=rev
Log:
[asan] fix the va_arg usage
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc?rev=163879&r1=163878&r2=163879&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc Fri Sep 14 01:52:46 2012
@@ -129,7 +129,7 @@
}
case 'c': {
RAW_CHECK_MSG(!have_z, kPrintfFormatsHelp);
- result += AppendChar(&buff, buff_end, va_arg(args, uptr));
+ result += AppendChar(&buff, buff_end, va_arg(args, int));
break;
}
case '%' : {
More information about the llvm-commits
mailing list