Fix review comments

This commit is contained in:
bjorn3
2020-07-16 18:22:05 +02:00
committed by Benjamin Bouvier
parent 7b7b1f4997
commit 5c5a30f76c
3 changed files with 84 additions and 22 deletions

View File

@@ -123,7 +123,8 @@ pub fn legalize_args<AA: ArgAssigner>(args: &[AbiParam], aa: &mut AA) -> Option<
args.to_mut()[argno].location = loc;
argno += 1;
}
// Assign argument to a location, change type to `INVALID` and move on to the next one.
// Assign argument to a location, change type to the requested one and move on to the
// next one.
ArgAction::AssignAndChangeType(loc, ty) => {
let arg = &mut args.to_mut()[argno];
arg.location = loc;