Skip to content

Commit

Permalink
[dfsan] add a missing zero origin at atomic commands
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-yichao-zhao committed Mar 4, 2021
1 parent 76148ca commit 72abc9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
Expand Up @@ -2346,6 +2346,7 @@ void DFSanVisitor::visitCASOrRMW(Align InstAlignment, Instruction &I) {
const Align ShadowAlign = DFSF.getShadowAlign(InstAlignment);
DFSF.storeZeroPrimitiveShadow(Addr, Size, ShadowAlign, &I);
DFSF.setShadow(&I, DFSF.DFS.getZeroShadow(&I));
DFSF.setOrigin(&I, DFSF.DFS.ZeroOrigin);
}

void DFSanVisitor::visitAtomicRMWInst(AtomicRMWInst &I) {
Expand Down

0 comments on commit 72abc9b

Please sign in to comment.