Fix warning when assertions disabled.
[oota-llvm.git] / lib / VMCore / Instructions.cpp
index 5b8e2917152d79486b231283dc1226532a92a732..3421292930d490f4995e436b2357ce21a35cf386 100644 (file)
@@ -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,