aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/Instructions.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp
index 80a24f9..604f9f9 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -1460,6 +1460,12 @@ const Type* ExtractValueInst::getIndexedType(const Type *Agg,
return CurIdx == NumIdx ? Agg : 0;
}
+const Type* ExtractValueInst::getIndexedType(const Type *Agg,
+ const unsigned Idx) {
+ const unsigned Idxs[1] = { Idx };
+ return getIndexedType(Agg, &Idxs[0], 1);
+}
+
ExtractValueInst::ExtractValueInst(Value *Agg,
unsigned Idx,
const std::string &Name,