[PATCH] D125764: Assert on polymorphic pointer intrinsic param
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 18 06:36:00 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8c975eac3434: Assert on polymorphic pointer intrinsic param (authored by thopre).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125764/new/
https://reviews.llvm.org/D125764
Files:
llvm/lib/IR/Function.cpp
Index: llvm/lib/IR/Function.cpp
===================================================================
--- llvm/lib/IR/Function.cpp
+++ llvm/lib/IR/Function.cpp
@@ -1495,6 +1495,9 @@
while (Infos.front().Kind == IITDescriptor::Pointer ||
Infos.front().Kind == IITDescriptor::Vector)
Infos = Infos.slice(1);
+ assert((Infos.front().Kind != IITDescriptor::Argument ||
+ Infos.front().getArgumentKind() == IITDescriptor::AK_MatchType) &&
+ "Unsupported polymorphic pointer type with opaque pointer");
Infos = Infos.slice(1);
return false;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125764.430358.patch
Type: text/x-patch
Size: 614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220518/3cc088e5/attachment.bin>
More information about the llvm-commits
mailing list