diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-06-30 20:12:27 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-06-30 20:12:27 +0000 |
commit | 833740ac5e6d17f3ea28077ea4acc7020d78f8f4 (patch) | |
tree | d51bb3e27b9b1fd0be42f4b6dcb59bb5eddcf909 /llvm/lib/Transforms | |
parent | 33c8090a2f7f2e6d554f84a15a573a7ff7d3f59d (diff) | |
download | bcm5719-llvm-833740ac5e6d17f3ea28077ea4acc7020d78f8f4.tar.gz bcm5719-llvm-833740ac5e6d17f3ea28077ea4acc7020d78f8f4.zip |
msan: Stop stripping the 'tail' modifier off of calls
This probably isn't necessary since msan started to unpoison the return
value shadow memory before all calls.
llvm-svn: 212061
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 4ca03238071..b08a4773f95 100644 --- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -2272,12 +2272,6 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> { return; } - // Allow only tail calls with the same types, otherwise - // we may have a false positive: shadow for a non-void RetVal - // will get propagated to a void RetVal. - if (Call->isTailCall() && Call->getType() != Call->getParent()->getType()) - Call->setTailCall(false); - assert(!isa<IntrinsicInst>(&I) && "intrinsics are handled elsewhere"); // We are going to insert code that relies on the fact that the callee |