fix(cbuiltin): translate_c_addr 补末尾 return None(真实掉出)
arg0 非 Name/Attribute/Subscript 时三个分支都不进入 → 流程真实掉出函数末尾,补显式 return None(fail-fast 不允许掉出)
This commit is contained in:
1 parent
c40c00f933
commit
ebf0aed5b1
1 file changed
+4
@@ -421,6 +421,10 @@ class CallGenCBuiltin(CallGenBase.CallGenBase):
|
||||
pass
|
||||
return None
|
||||
|
||||
# 其他 arg0 形式(非 Name/Attribute/Subscript):真实掉出函数末尾,
|
||||
# 补显式 return None(fail-fast 不允许流程掉出末尾)
|
||||
return None
|
||||
|
||||
|
||||
def translate_c_load(self, pool: memhub.MemBuddy | t.CPtr,
|
||||
builder: llvmlite.IRBuilder | t.CPtr,
|
||||
|
||||
Reference in new issue
Block a user