From: weiyu Date: Mon, 10 May 2021 21:06:51 +0000 (-0700) Subject: Compiler under llvm 12 release X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11llvm.git;a=commitdiff_plain;h=7a52dd4cf76177b42117bb6eda05815e6b819009 Compiler under llvm 12 release --- 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