aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit7f6976ecafb550eaaaf216d4756e432589e9c637 (patch)
tree82e7b3c8bb809da51ef1d340cd510e049e7a2601 /lib/VMCore/Instructions.cpp
parentb7ba44b44eb7feec1baab61778e044244344e380 (diff)
downloadexternal_llvm-7f6976ecafb550eaaaf216d4756e432589e9c637.zip
external_llvm-7f6976ecafb550eaaaf216d4756e432589e9c637.tar.gz
external_llvm-7f6976ecafb550eaaaf216d4756e432589e9c637.tar.bz2
Simplify this code. Thanks Chris!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-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 5b8e291..3421292 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,