aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2020-04-21 11:33:40 -0700
committerFangrui Song <maskray@google.com>2020-04-21 11:33:40 -0700
commitcca545ce462b61bdd4bd1b8d81d9eb921e13aebc (patch)
tree1dc78e1b533d23f9e05c2d8f63dbb24a9204a09f
parent116c2da4b2505af98c1b9652c8f280ec8147d27e (diff)
downloadllvm-cca545ce462b61bdd4bd1b8d81d9eb921e13aebc.zip
llvm-cca545ce462b61bdd4bd1b8d81d9eb921e13aebc.tar.gz
llvm-cca545ce462b61bdd4bd1b8d81d9eb921e13aebc.tar.bz2
[CallSite] Fix build breakage after D78538
-rw-r--r--llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp b/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
index 0e7b4da..c750cbd 100644
--- a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
+++ b/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
@@ -441,7 +441,7 @@ DeadArgumentEliminationPass::SurveyUse(const Use *U, UseVector &MaybeLiveUses,
// The value is passed in through a vararg! Must be live.
return Live;
- assert(CB->getArgument(ArgNo) == CB->getOperand(U->getOperandNo()) &&
+ assert(CB->getArgOperand(ArgNo) == CB->getOperand(U->getOperandNo()) &&
"Argument is not where we expected it");
// Value passed to a normal call. It's only live when the corresponding