From 7a52dd4cf76177b42117bb6eda05815e6b819009 Mon Sep 17 00:00:00 2001 From: weiyu Date: Mon, 10 May 2021 14:06:51 -0700 Subject: [PATCH] Compiler under llvm 12 release --- CDSPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CDSPass.cpp b/CDSPass.cpp index aee977f..26f8601 100644 --- a/CDSPass.cpp +++ b/CDSPass.cpp @@ -482,7 +482,7 @@ void CDSPass::chooseInstructionsToInstrument( Value *Addr = isa(*I) ? cast(I)->getPointerOperand() : cast(I)->getPointerOperand(); - if (isa(GetUnderlyingObject(Addr, DL)) && + if (isa(getUnderlyingObject(Addr)) && !PointerMayBeCaptured(Addr, true, true)) { // The variable is addressable but not captured, so it cannot be // referenced from a different thread and participate in a data race -- 2.34.1