[compiler-rt] r284886 - Fix typo (ordered comparison between pointer and 0).
Richard Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 21 14:37:18 PDT 2016
Author: rsmith
Date: Fri Oct 21 16:37:18 2016
New Revision: 284886
URL: http://llvm.org/viewvc/llvm-project?rev=284886&view=rev
Log:
Fix typo (ordered comparison between pointer and 0).
Modified:
compiler-rt/trunk/test/msan/backtrace.cc
Modified: compiler-rt/trunk/test/msan/backtrace.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/msan/backtrace.cc?rev=284886&r1=284885&r2=284886&view=diff
==============================================================================
--- compiler-rt/trunk/test/msan/backtrace.cc (original)
+++ compiler-rt/trunk/test/msan/backtrace.cc Fri Oct 21 16:37:18 2016
@@ -15,7 +15,7 @@ void f() {
if (!buf[i])
exit(1);
char **s = backtrace_symbols(buf, sz);
- assert(s > 0);
+ assert(s != 0);
for (int i = 0; i < sz; ++i)
printf("%d\n", (int)strlen(s[i]));
}
More information about the llvm-commits
mailing list