diff options
| author | Gabor Greif <ggreif@gmail.com> | 2010-03-24 13:21:49 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2010-03-24 13:21:49 +0000 |
| commit | 09452dca7da2e17525402bb7604bc5f4af3e321c (patch) | |
| tree | 855c74f792cd3e5ba272a2a73df5a17feb2729ab /lib/Transforms/IPO/DeadArgumentElimination.cpp | |
| parent | fbfae158507c206713c978724f56719d53825bd3 (diff) | |
| download | external_llvm-09452dca7da2e17525402bb7604bc5f4af3e321c.zip external_llvm-09452dca7da2e17525402bb7604bc5f4af3e321c.tar.gz external_llvm-09452dca7da2e17525402bb7604bc5f4af3e321c.tar.bz2 | |
Finally land the InvokeInst operand reordering.
I have audited all getOperandNo calls now, fixing
hidden assumptions. CallSite related uglyness will
be eliminated successively.
Note this patch has a long and griveous history,
for all the back-and-forths have a look at
CallSite.h's log.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/DeadArgumentElimination.cpp')
| -rw-r--r-- | lib/Transforms/IPO/DeadArgumentElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/DeadArgumentElimination.cpp b/lib/Transforms/IPO/DeadArgumentElimination.cpp index becb8e8..36fa085 100644 --- a/lib/Transforms/IPO/DeadArgumentElimination.cpp +++ b/lib/Transforms/IPO/DeadArgumentElimination.cpp @@ -352,7 +352,7 @@ DAE::Liveness DAE::SurveyUse(Value::use_iterator U, UseVector &MaybeLiveUses, // argument, since if it was the function argument this would be an // indirect call and the we know can't be looking at a value of the // label type (for the invoke instruction). - unsigned ArgNo = CS.getArgumentNo(U.getOperandNo()); + unsigned ArgNo = CS.getArgumentNo(U); if (ArgNo >= F->getFunctionType()->getNumParams()) // The value is passed in through a vararg! Must be live. |
