[llvm-commits] [llvm] r52514 - /llvm/trunk/lib/VMCore/Instructions.cpp
Dan Gohman
gohman at apple.com
Thu Jun 19 17:47:44 PDT 2008
Author: djg
Date: Thu Jun 19 19:47:44 2008
New Revision: 52514
URL: http://llvm.org/viewvc/llvm-project?rev=52514&view=rev
Log:
Simplify this code. Thanks Chris!
Modified:
llvm/trunk/lib/VMCore/Instructions.cpp
Modified: llvm/trunk/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=52514&r1=52513&r2=52514&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Thu Jun 19 19:47:44 2008
@@ -1463,9 +1463,8 @@
}
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,
More information about the llvm-commits
mailing list