[llvm] r318923 - MSan: remove an unnecessary cast. NFC for userspace instrumenetation.
Alexander Potapenko via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 23 07:06:52 PST 2017
Author: glider
Date: Thu Nov 23 07:06:51 2017
New Revision: 318923
URL: http://llvm.org/viewvc/llvm-project?rev=318923&view=rev
Log:
MSan: remove an unnecessary cast. NFC for userspace instrumenetation.
Modified:
llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp?rev=318923&r1=318922&r2=318923&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp Thu Nov 23 07:06:51 2017
@@ -1076,9 +1076,9 @@ struct MemorySanitizerVisitor : public I
/// \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.
More information about the llvm-commits
mailing list