[llvm] cca545c - [CallSite] Fix build breakage after D78538
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 21 11:33:51 PDT 2020
Author: Fangrui Song
Date: 2020-04-21T11:33:40-07:00
New Revision: cca545ce462b61bdd4bd1b8d81d9eb921e13aebc
URL: https://github.com/llvm/llvm-project/commit/cca545ce462b61bdd4bd1b8d81d9eb921e13aebc
DIFF: https://github.com/llvm/llvm-project/commit/cca545ce462b61bdd4bd1b8d81d9eb921e13aebc.diff
LOG: [CallSite] Fix build breakage after D78538
Added:
Modified:
llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp b/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
index 0e7b4dab6ebb..c750cbddd69e 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
More information about the llvm-commits
mailing list