diff options
author | Kostya Serebryany <kcc@google.com> | 2015-05-29 20:31:17 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2015-05-29 20:31:17 +0000 |
commit | 3fe7682fb0256f6fa04c6ceaf23f6fc9e56fa008 (patch) | |
tree | 060ddad6fb21254cc8effaab64cc3fe17bbe38ce /llvm/lib | |
parent | b5d316bfc3cd93165670f06c69f21f2b561fa4f7 (diff) | |
download | bcm5719-llvm-3fe7682fb0256f6fa04c6ceaf23f6fc9e56fa008.tar.gz bcm5719-llvm-3fe7682fb0256f6fa04c6ceaf23f6fc9e56fa008.zip |
[lib/Fuzzer] relax an assertion
llvm-svn: 238608
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerTraceState.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerTraceState.cpp b/llvm/lib/Fuzzer/FuzzerTraceState.cpp index ddb0764930f..b2e1e956dfc 100644 --- a/llvm/lib/Fuzzer/FuzzerTraceState.cpp +++ b/llvm/lib/Fuzzer/FuzzerTraceState.cpp @@ -332,7 +332,7 @@ extern "C" { void __dfsw___sanitizer_cov_trace_cmp(uint64_t SizeAndType, uint64_t Arg1, uint64_t Arg2, dfsan_label L0, dfsan_label L1, dfsan_label L2) { - assert(TS); + if (!TS) return; assert(L0 == 0); uintptr_t PC = reinterpret_cast<uintptr_t>(__builtin_return_address(0)); uint64_t CmpSize = (SizeAndType >> 32) / 8; @@ -343,7 +343,7 @@ void __dfsw___sanitizer_cov_trace_cmp(uint64_t SizeAndType, uint64_t Arg1, void dfsan_weak_hook_memcmp(void *caller_pc, const void *s1, const void *s2, size_t n, dfsan_label s1_label, dfsan_label s2_label, dfsan_label n_label) { - assert(TS); + if (!TS) return; uintptr_t PC = reinterpret_cast<uintptr_t>(caller_pc); uint64_t S1 = 0, S2 = 0; // Simplification: handle only first 8 bytes. |