msan: Stop stripping the 'tail' modifier off of calls
[oota-llvm.git] / lib / Transforms / Instrumentation / MemorySanitizer.cpp
index 4ca03238071f11a8fd330f99fe2edad9a3dd8439..b08a4773f95fcecaa0da80855094c170beef53a5 100644 (file)
@@ -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