diff options
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r-- | lib/VMCore/Instructions.cpp | 5 |
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, |