summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-03-02 20:59:11 +0000
committerXinliang David Li <davidxl@google.com>2016-03-02 20:59:11 +0000
commit783fb1f6426f32e5bb7731d57cd517a90fa7bccd (patch)
tree6947d4a81f0f074677e5b8d01ad114dacf55a5a4
parentc691b14a416b81437ac8184c4f918bb5a292c609 (diff)
downloadbcm5719-llvm-783fb1f6426f32e5bb7731d57cd517a90fa7bccd.tar.gz
bcm5719-llvm-783fb1f6426f32e5bb7731d57cd517a90fa7bccd.zip
Fix minor bug in test
llvm-svn: 262514
-rw-r--r--compiler-rt/test/profile/instrprof-without-libc.c2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud