aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-20 00:47:44 +0000
committerDan Gohman <gohman@apple.com>2008-06-20 00:47:44 +0000
commit09ef00f97976b6bc745b804baa6dec1ee79fd343 (patch)
tree82e7b3c8bb809da51ef1d340cd510e049e7a2601
parentc8af52c8980fa4a06f24e6fc08678ff8378088a1 (diff)
Simplify this code. Thanks Chris!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52514 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Instructions.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp
index 5b8e291715..3421292930 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -1463,9 +1463,8 @@ const Type* ExtractValueInst::getIndexedType(const Type *Agg,
}
const Type* ExtractValueInst::getIndexedType(const Type *Agg,
- const unsigned Idx) {
- const unsigned Idxs[1] = { Idx };
- return getIndexedType(Agg, &Idxs[0], 1);
+ unsigned Idx) {
+ return getIndexedType(Agg, &Idx, 1);
}
ExtractValueInst::ExtractValueInst(Value *Agg,