Skip to content

Commit

Permalink
asm: improve error of missing local variable, add function name for c…
Browse files Browse the repository at this point in the history
…ontext
  • Loading branch information
mewmew committed Dec 8, 2018
1 parent 9c2e8ca commit bc6a508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asm/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (fgen *funcGen) irValue(typ types.Type, old ast.Value) (value.Value, error)
ident := localIdent(*old)
v, ok := fgen.locals[ident]
if !ok {
return nil, errors.Errorf("unable to locate local identifier %q", ident.Ident())
return nil, errors.Errorf("unable to locate local identifier %q of %q", ident.Ident(), fgen.f.Ident())
}
return v, nil
case *ast.InlineAsm:
Expand Down

0 comments on commit bc6a508

Please sign in to comment.