[PATCH] D78538: [llvm][NFC][CallSite] Remove CallSite from DeadArgumentElimination

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 21 11:22:44 PDT 2020


foad added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp:444
 
-        assert(CS.getArgument(ArgNo)
-               == CS->getOperand(U->getOperandNo())
-               && "Argument is not where we expected it");
+        assert(CB->getArgument(ArgNo) == CB->getOperand(U->getOperandNo()) &&
+               "Argument is not where we expected it");
----------------
Needs to be `CB->getArgOperand`. This is making my DEBUG build fail.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78538/new/

https://reviews.llvm.org/D78538





More information about the llvm-commits mailing list