From c72fbe5dc18ed0ffa6a1c67afef90e67c8b55c8b Mon Sep 17 00:00:00 2001 From: Cameron McInally Date: Wed, 5 Jun 2019 22:37:05 +0000 Subject: [MSAN] Add unary FNeg visitor to the MemorySanitizer Differential Revision: https://reviews.llvm.org/D62909 llvm-svn: 362664 --- llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Transforms/Instrumentation') 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 { 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 -- cgit v1.2.3