projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8af52c
)
Simplify this code. Thanks Chris!
author
Dan Gohman
<gohman@apple.com>
Fri, 20 Jun 2008 00:47:44 +0000
(
00:47
+0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 20 Jun 2008 00:47:44 +0000
(
00:47
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52514
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Instructions.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Instructions.cpp
b/lib/VMCore/Instructions.cpp
index 5b8e2917152d79486b231283dc1226532a92a732..3421292930d490f4995e436b2357ce21a35cf386 100644
(file)
--- 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,