summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2017-11-23 15:06:51 +0000
committerAlexander Potapenko <glider@google.com>2017-11-23 15:06:51 +0000
commit9e5477f4734ba85256a6508a54a200fa2aaf6ddf (patch)
treead2190c0044508eceaf7d6856c69a27b77112152
parent1c81d910bdb6485c99e2ebe818f69f2235559b85 (diff)
downloadbcm5719-llvm-9e5477f4734ba85256a6508a54a200fa2aaf6ddf.tar.gz
bcm5719-llvm-9e5477f4734ba85256a6508a54a200fa2aaf6ddf.zip
MSan: remove an unnecessary cast. NFC for userspace instrumenetation.
llvm-svn: 318923
-rw-r--r--llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
index 30b15195e8c..44190a2c312 100644
--- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -1076,9 +1076,9 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
/// \brief Compute the shadow address for a retval.
Value *getShadowPtrForRetval(Value *A, IRBuilder<> &IRB) {
- Value *Base = IRB.CreatePointerCast(MS.RetvalTLS, MS.IntptrTy);
- return IRB.CreateIntToPtr(Base, PointerType::get(getShadowTy(A), 0),
- "_msret");
+ return IRB.CreatePointerCast(MS.RetvalTLS,
+ PointerType::get(getShadowTy(A), 0),
+ "_msret");
}
/// \brief Compute the origin address for a retval.
OpenPOWER on IntegriCloud