mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge remote-tracking branch 'origin/GT-3319_SleighFunctionCall'
This commit is contained in:
@@ -1246,7 +1246,17 @@ funcall returns [VectorSTL<OpTpl> value]
|
|||||||
@init {
|
@init {
|
||||||
$Return::noReturn = true;
|
$Return::noReturn = true;
|
||||||
}
|
}
|
||||||
: e=expr_apply { $value = (VectorSTL<OpTpl>) e; }
|
: e=expr_apply {
|
||||||
|
if (e instanceof VectorSTL<?>)
|
||||||
|
$value = (VectorSTL<OpTpl>) e;
|
||||||
|
else {
|
||||||
|
Location loc = null;
|
||||||
|
if (e instanceof ExprTree) {
|
||||||
|
loc = ((ExprTree)e).location;
|
||||||
|
}
|
||||||
|
reportError(loc,"Functional operator requires a return value");
|
||||||
|
}
|
||||||
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
build_stmt returns [VectorSTL<OpTpl> ops]
|
build_stmt returns [VectorSTL<OpTpl> ops]
|
||||||
|
|||||||
Reference in New Issue
Block a user