Skip to content

Commit aac3cd1

Browse files
authored
[sycl-post-link][NFC] Check for empty result after ESIMD split (#10255)
1 parent 663042b commit aac3cd1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/tools/sycl-post-link/sycl-post-link.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,7 @@ processInputModule(std::unique_ptr<Module> M) {
974974
MDesc.fixupLinkageOfDirectInvokeSimdTargets();
975975
SmallVector<module_split::ModuleDesc, 2> MMs =
976976
handleESIMD(std::move(MDesc), Modified, SplitOccurred);
977+
assert(MMs.size() && "at least one module is expected after ESIMD split");
977978

978979
if (IROutputOnly) {
979980
if (SplitOccurred) {

0 commit comments

Comments
 (0)