From: Sean Silva Date: Sat, 26 Mar 2016 04:01:57 +0000 (+0000) Subject: [libprofile] Adjust dummy condition to be more forgiving. X-Git-Tag: llvmorg-3.9.0-rc1~10835 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d63f1f1ff234fff8b76d80186f6fee1ab3921d86;p=platform%2Fupstream%2Fllvm.git [libprofile] Adjust dummy condition to be more forgiving. On PS4, we have to fake environment variables by passing extra command line arguments, so the dummy test `argc > 1` was failing. The condition is just a dummy condition that the compiler can't fold away, so the number is arbitrary as long as the condition is false. Increase the number it compares against. llvm-svn: 264491 --- diff --git a/compiler-rt/test/profile/instrprof-write-file-only.c b/compiler-rt/test/profile/instrprof-write-file-only.c index 4abbdea..f505cf6 100644 --- a/compiler-rt/test/profile/instrprof-write-file-only.c +++ b/compiler-rt/test/profile/instrprof-write-file-only.c @@ -11,7 +11,7 @@ int foo(int); int main(int argc, const char *argv[]) { // CHECK-LABEL: define {{.*}} @main( // CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof ![[PD1:[0-9]+]] - if (argc > 1) + if (argc > 42) return 1; // Since the runtime has been suppressed, initialize the file name, as the