projects
/
c11llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
707fc6a
)
Compiler under llvm 12 release
llvm12
author
weiyu
<weiyuluo1232@gmail.com>
Mon, 10 May 2021 21:06:51 +0000
(14:06 -0700)
committer
weiyu
<weiyuluo1232@gmail.com>
Mon, 10 May 2021 21:06:51 +0000
(14:06 -0700)
CDSPass.cpp
patch
|
blob
|
history
diff --git
a/CDSPass.cpp
b/CDSPass.cpp
index aee977f02b41cfcc6643d7de296493c2eef79178..26f86010ae681d90fc8d027934f48dee07bed2dc 100644
(file)
--- a/
CDSPass.cpp
+++ b/
CDSPass.cpp
@@
-482,7
+482,7
@@
void CDSPass::chooseInstructionsToInstrument(
Value *Addr = isa<StoreInst>(*I)
? cast<StoreInst>(I)->getPointerOperand()
: cast<LoadInst>(I)->getPointerOperand();
Value *Addr = isa<StoreInst>(*I)
? cast<StoreInst>(I)->getPointerOperand()
: cast<LoadInst>(I)->getPointerOperand();
- if (isa<AllocaInst>(
GetUnderlyingObject(Addr, DL
)) &&
+ if (isa<AllocaInst>(
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
!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