From 4193f345382c2a6e7b098b7291b0df03f4cd06e1 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 23 Jun 2008 16:38:10 +0000 Subject: [PATCH] Remove an unnecessary cast. llvm-svn: 52626 --- llvm/include/llvm/Instructions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index 36c0a5928125..403e82aea1ff 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/include/llvm/Instructions.h @@ -1501,7 +1501,7 @@ class ExtractValueInst : public UnaryInstruction { if (NumIdx > 0) // This requires that the iterator points to contiguous memory. - return getIndexedType(Ptr, (const unsigned *)&*IdxBegin, NumIdx); + return getIndexedType(Ptr, &*IdxBegin, NumIdx); else return getIndexedType(Ptr, (const unsigned *)0, NumIdx); } -- GitLab