[PATCH] D139209: [IRMover] Remove UB implying parameter attributes when necessary
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 05:20:27 PST 2023
arsenm added inline comments.
================
Comment at: llvm/lib/Linker/IRMover.cpp:1577-1579
+ if (DstF && SrcF && DstF->isDeclaration() && !SrcF->isDeclaration()) {
+ assert(DstF->arg_size() == SrcF->arg_size() &&
+ "Dst and Src should have the same signature.");
----------------
I thought we casted the function type at callsites for different signatures in different modules, so this wouldn't hold?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139209/new/
https://reviews.llvm.org/D139209
More information about the llvm-commits
mailing list