[compiler-rt] r262514 - Fix minor bug in test

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 2 12:59:11 PST 2016


Author: davidxl
Date: Wed Mar  2 14:59:11 2016
New Revision: 262514

URL: http://llvm.org/viewvc/llvm-project?rev=262514&view=rev
Log:
Fix minor bug in test

Modified:
    compiler-rt/trunk/test/profile/instrprof-without-libc.c

Modified: compiler-rt/trunk/test/profile/instrprof-without-libc.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/instrprof-without-libc.c?rev=262514&r1=262513&r2=262514&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/instrprof-without-libc.c (original)
+++ compiler-rt/trunk/test/profile/instrprof-without-libc.c Wed Mar  2 14:59:11 2016
@@ -29,7 +29,7 @@ int main(int argc, const char *argv[]) {
   if (Size > MaxSize)
     return 1;
   int Write = __llvm_profile_write_buffer(Buffer);
-  if (__llvm_profile_write_buffer(Buffer))
+  if (Write)
     return Write;
 
 #ifdef CHECK_SYMBOLS




More information about the llvm-commits mailing list