Type convert NULL to other pointer types for function call arguments.
Fixes issue #198.
This commit is contained in:
4
expr.cpp
4
expr.cpp
@@ -3409,7 +3409,9 @@ FunctionCallExpr::TypeCheck() {
|
||||
if (t == NULL)
|
||||
return NULL;
|
||||
argTypes.push_back(t);
|
||||
argCouldBeNULL.push_back(lIsAllIntZeros(args->exprs[i]));
|
||||
|
||||
argCouldBeNULL.push_back(lIsAllIntZeros(args->exprs[i]) ||
|
||||
dynamic_cast<NullPointerExpr *>(args->exprs[i]) != NULL);
|
||||
}
|
||||
|
||||
FunctionSymbolExpr *fse = dynamic_cast<FunctionSymbolExpr *>(func);
|
||||
|
||||
Reference in New Issue
Block a user