aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2018-05-14 04:14:39 +0000
committerDean Michael Berris <dberris@google.com>2018-05-14 04:14:39 +0000
commit74b5b9b1768d39afeeb2502ce0d0182c35a3d4de (patch)
tree740fbc82cc2b6e3291f828ddba336c290936a95a
parent863ae459b8e1570e7ecbd4778362e999d7eeec4a (diff)
[XRay][compiler-rt] Fixup: Use proper string comparison for DCHECK
Fixes the sanitizer build. Follow-up to D46574. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332211 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/xray/xray_fdr_logging.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xray/xray_fdr_logging.cc b/lib/xray/xray_fdr_logging.cc
index ca50cf42d..632ae013d 100644
--- a/lib/xray/xray_fdr_logging.cc
+++ b/lib/xray/xray_fdr_logging.cc
@@ -89,7 +89,7 @@ XRayFileHeader &fdrCommonHeaderInfo() {
// implementations of __xray_set_buffer_iterator(...) and
// __xray_log_process_buffers(...).
XRayBuffer fdrIterator(const XRayBuffer B) {
- DCHECK_EQ(__xray_current_mode(), "xray-fdr");
+ DCHECK(internal_strcmp(__xray_log_get_current_mode(), "xray-fdr") == 0);
DCHECK(BQ->finalizing());
if (BQ == nullptr || !BQ->finalizing()) {