From 783fb1f6426f32e5bb7731d57cd517a90fa7bccd Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Wed, 2 Mar 2016 20:59:11 +0000 Subject: Fix minor bug in test llvm-svn: 262514 --- compiler-rt/test/profile/instrprof-without-libc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler-rt') diff --git a/compiler-rt/test/profile/instrprof-without-libc.c b/compiler-rt/test/profile/instrprof-without-libc.c index eb0a76ded39..ffd3055279f 100644 --- a/compiler-rt/test/profile/instrprof-without-libc.c +++ b/compiler-rt/test/profile/instrprof-without-libc.c @@ -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 -- cgit v1.2.3