aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-23 16:38:10 +0000
committerDan Gohman <gohman@apple.com>2008-06-23 16:38:10 +0000
commit19a81633b01b4b30b356ba6d7aed6bc451470654 (patch)
tree45d31d0cd5010886a99bf8ec09613b0b3290842f
parent0a4627d71f8f836558ef05c9739b560e82412687 (diff)
Remove an unnecessary cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52626 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Instructions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 36c0a59281..403e82aea1 100644
--- a/include/llvm/Instructions.h
+++ b/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);
}