From e3f749b166be81544d364756032421e8c834a079 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Tue, 10 Nov 2009 18:21:37 +0000 Subject: [PATCH] Fix obvious typo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86694 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/DeadStoreElimination.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/DeadStoreElimination.cpp b/lib/Transforms/Scalar/DeadStoreElimination.cpp index ae25d38718d..c66db5e2721 100644 --- a/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -142,7 +142,7 @@ static unsigned getStoreSize(Instruction *I, const TargetData *TD) { case Intrinsic::init_trampoline: return -1u; case Intrinsic::lifetime_end: - Len = II->getOperand(0); + Len = II->getOperand(1); } } if (ConstantInt *LenCI = dyn_cast(Len))