Skip to content

Commit 74f9df6

Browse files
authored
Fix issue 2901 (#2902)
* parallel for Signed-off-by: Chen Tong <[email protected]> * run through Signed-off-by: Tong Chen <[email protected]> * flag Signed-off-by: Tong Chen <[email protected]> * format Signed-off-by: chentong319 <[email protected]> * Revert "format" This reverts commit ebd27e2. * Revert "flag" This reverts commit 432e4be. * fix merge error Signed-off-by: chentong319 <[email protected]> * fix Signed-off-by: chentong319 <[email protected]> --------- Signed-off-by: Chen Tong <[email protected]> Signed-off-by: Tong Chen <[email protected]> Signed-off-by: Tong Chen <[email protected]> Signed-off-by: chentong319 <[email protected]>
1 parent 79ed896 commit 74f9df6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Conversion/ONNXToKrnl/ConvertONNXToKrnl.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class ONNXEntryPointLowering : public OpRewritePattern<ONNXEntryPointOp> {
4646
ONNXEntryPointOp::getEntryPointFuncAttrName());
4747
StringRef entryPointName = funcRefAttr.getLeafReference().getValue();
4848
Operation *entryPointOp = module.lookupSymbol(entryPointName);
49+
assert(entryPointOp && "entry point name not found!");
4950
func::FuncOp entryPointFunc = cast<func::FuncOp>(entryPointOp);
5051

5152
IntegerAttr numInputsAttr =

0 commit comments

Comments
 (0)