[llvm] [Verifier] Add LandingPad type checks (PR #87198)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 31 11:36:16 PDT 2024
================
@@ -4378,6 +4378,29 @@ void Verifier::visitEHPadPredecessors(Instruction &I) {
}
}
+// Recursively extract types from the LandingPad type
+// Based on ComputeValueVTs
+static void linearizeLandingPadTypes(Type *Ty,
----------------
AlexDenisov wrote:
This is effectively a copy of `ComputeValueVTs`, but without type conversion and offset calculation which depends on `TargetLowering information` and `DataLayout`.
Not sure where to put this code or whether there is some existing functionality I can reuse.
Better suggestions are highly appreciated!
https://github.com/llvm/llvm-project/pull/87198
More information about the llvm-commits
mailing list