diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2014-08-13 09:19:39 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2014-08-13 09:19:39 +0000 |
| commit | 3f92ecc2a034863d2950a21d19c674a7ba5cf2c6 (patch) | |
| tree | 2cdee5382ecdca746f94cdc4e3e1f7394e6fb0ea /llvm/lib/Transforms | |
| parent | 76244be6d4f8cd953c5ebe869f5115dcc7ec4f7b (diff) | |
| download | bcm5719-llvm-3f92ecc2a034863d2950a21d19c674a7ba5cf2c6.tar.gz bcm5719-llvm-3f92ecc2a034863d2950a21d19c674a7ba5cf2c6.zip | |
Revert r215415 which causse MSan to crash on a great deal of C++ code.
I've followed up on the original commit as well.
llvm-svn: 215532
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 643faacc700..3df1d157412 100644 --- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -2356,12 +2356,6 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> { VAHelper->visitCallSite(CS, IRB); } - // If this is a musttail call site, we can't insert propagation code here. - // The return type of the caller must match the callee, so the shadow should - // already be set up for an immediate return. - if (CS.isMustTailCall()) - return; - // Now, get the shadow for the RetVal. if (!I.getType()->isSized()) return; IRBuilder<> IRBBefore(&I); @@ -2395,10 +2389,6 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> { } void visitReturnInst(ReturnInst &I) { - // Don't propagate shadow between musttail calls and the return. - if (I.getParent()->getTerminatingMustTailCall()) - return; - IRBuilder<> IRB(&I); Value *RetVal = I.getReturnValue(); if (!RetVal) return; |

