Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
19 lines
233 B
Plaintext
19 lines
233 B
Plaintext
// replace 'R = X; return R;' with 'return X;'
|
|
@@
|
|
identifier VAR;
|
|
expression E;
|
|
type T;
|
|
identifier F;
|
|
@@
|
|
T F(...)
|
|
{
|
|
...
|
|
- T VAR;
|
|
... when != VAR
|
|
|
|
- VAR = (E);
|
|
- return VAR;
|
|
+ return E;
|
|
... when != VAR
|
|
}
|