summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCameron McInally <cameron.mcinally@nyu.edu>2019-06-05 22:37:05 +0000
committerCameron McInally <cameron.mcinally@nyu.edu>2019-06-05 22:37:05 +0000
commitc72fbe5dc18ed0ffa6a1c67afef90e67c8b55c8b (patch)
tree82e31b90d00110da6a2faa9451c3af95b042c4c7 /llvm/lib
parent6c5d5ce5517b12420f2717ae660a8929a41dda26 (diff)
downloadbcm5719-llvm-c72fbe5dc18ed0ffa6a1c67afef90e67c8b55c8b.tar.gz
bcm5719-llvm-c72fbe5dc18ed0ffa6a1c67afef90e67c8b55c8b.zip
[MSAN] Add unary FNeg visitor to the MemorySanitizer
Differential Revision: https://reviews.llvm.org/D62909 llvm-svn: 362664
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
index 87f73ff24c4..7c261775003 100644
--- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -2110,6 +2110,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
SC.Done(&I);
}
+ void visitFNeg(UnaryOperator &I) { handleShadowOr(I); }
+
// Handle multiplication by constant.
//
// Handle a special case of multiplication by constant that may have one or
OpenPOWER on IntegriCloud