From a7538fee3a0256a8891e746823f7b0f0ade84e62 Mon Sep 17 00:00:00 2001 From: Jianzhou Zhao Date: Fri, 12 Feb 2021 18:11:13 +0000 Subject: [PATCH] [dfsan] Comment out ChainOrigin temporarily It was added by D96160, will be used by D96564. Some OS got errors if it is not used. Comment it out for the time being. --- compiler-rt/lib/dfsan/dfsan.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/lib/dfsan/dfsan.cpp b/compiler-rt/lib/dfsan/dfsan.cpp index 7abdf68e..748bd61 100644 --- a/compiler-rt/lib/dfsan/dfsan.cpp +++ b/compiler-rt/lib/dfsan/dfsan.cpp @@ -304,6 +304,7 @@ dfsan_label dfsan_create_label(const char *desc, void *userdata) { stack.Print(); \ } +/* static u32 ChainOrigin(u32 id, StackTrace *stack, bool from_init = false) { // StackDepot is not async signal safe. Do not create new chains in a signal // handler. @@ -326,6 +327,7 @@ static u32 ChainOrigin(u32 id, StackTrace *stack, bool from_init = false) { Origin chained = Origin::CreateChainedOrigin(o, stack); return chained.raw_id(); } +*/ static void WriteShadowIfDifferent(dfsan_label label, uptr shadow_addr, uptr size) { -- 2.7.4