Inlining cast managed typed to unmanaged
Original Reporter info from Mantis: okobapatino @OkobaPatino
-
Reporter name: OkobaPatino
Original Reporter info from Mantis: okobapatino @OkobaPatino
- Reporter name: OkobaPatino
Description:
Currently, the compiler can not inline calling functions like Test2, and it needs to make separate variants for each param to enable inlining.
program Project1;
function Test1(A: PChar): PChar; inline;
begin
Result := A + 1;
end;
var
S: String;
P: PChar;
begin
S := 'Test';
P := Pointer(S); //Inlined
P := Test1(P);
P := Test1(Pointer(S)); //Not inlined
end.
Mantis conversion info:
- Mantis ID: 38114
- Monitored by: » @OkobaPatino (OkobaPatino)