summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Instructions.cpp
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
commitd87e813e41f8f9bc887263de690ec7acf911622a (patch)
treed5f045069d37bf86a8597c53cf9114eba73250ac /llvm/lib/VMCore/Instructions.cpp
parente562289a0f28eaa975ed6b49507609a2dc7a1bc7 (diff)
downloadbcm5719-llvm-d87e813e41f8f9bc887263de690ec7acf911622a.tar.gz
bcm5719-llvm-d87e813e41f8f9bc887263de690ec7acf911622a.zip
Simplify this code. Thanks Chris!
llvm-svn: 52514
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r--llvm/lib/VMCore/Instructions.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index 5b8e2917152..3421292930d 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud