diff options
author | Cameron McInally <cameron.mcinally@nyu.edu> | 2019-06-19 15:11:41 +0000 |
---|---|---|
committer | Cameron McInally <cameron.mcinally@nyu.edu> | 2019-06-19 15:11:41 +0000 |
commit | 7aa898e61e1939a95dd11d8a4800cb5ee65902b9 (patch) | |
tree | e4e03513904c06ed6d524ef83e040fb7c734639c /llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | |
parent | a027cf47640cd638eed4b24932fc4791c9efb3a0 (diff) | |
download | bcm5719-llvm-7aa898e61e1939a95dd11d8a4800cb5ee65902b9.tar.gz bcm5719-llvm-7aa898e61e1939a95dd11d8a4800cb5ee65902b9.zip |
[DFSan] Add UnaryOperator visitor to DataFlowSanitizer
Differential Revision: https://reviews.llvm.org/D62815
llvm-svn: 363814
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index a5776a47af7..2279c1bcb6a 100644 --- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp @@ -437,6 +437,7 @@ public: } void visitOperandShadowInst(Instruction &I); + void visitUnaryOperator(UnaryOperator &UO); void visitBinaryOperator(BinaryOperator &BO); void visitCastInst(CastInst &CI); void visitCmpInst(CmpInst &CI); @@ -1398,6 +1399,10 @@ void DFSanVisitor::visitStoreInst(StoreInst &SI) { DFSF.storeShadow(SI.getPointerOperand(), Size, Align, Shadow, &SI); } +void DFSanVisitor::visitUnaryOperator(UnaryOperator &UO) { + visitOperandShadowInst(UO); +} + void DFSanVisitor::visitBinaryOperator(BinaryOperator &BO) { visitOperandShadowInst(BO); } |