aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorElliott Sales de Andrade <[email protected]>2022-04-10 16:13:40 -0400
committerAyke <[email protected]>2022-04-10 22:58:16 +0200
commit7f507a70269086404cc43c391193f42ae7523111 (patch)
tree7fdf7a4e964a74659c4363d2f6121aede90c0336
parent83227e68dff83ff1c9cfacaf5defa4d2385556b0 (diff)
downloadtinygo-7f507a70269086404cc43c391193f42ae7523111.tar.gz
tinygo-7f507a70269086404cc43c391193f42ae7523111.zip
Fix incorrect formatting arguments
-rw-r--r--compiler/ircheck/check.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ircheck/check.go b/compiler/ircheck/check.go
index bbedc6273..30c6ee172 100644
--- a/compiler/ircheck/check.go
+++ b/compiler/ircheck/check.go
@@ -31,7 +31,7 @@ func (c *checker) checkType(t llvm.Type, checked map[llvm.Type]struct{}, special
return fmt.Errorf("type %q uses global context", t.String())
default:
// we used some other context by accident
- return fmt.Errorf("type %q uses context %v instead of the main context %v", t.Context(), c.ctx)
+ return fmt.Errorf("type %q uses context %v instead of the main context %v", t.String(), t.Context(), c.ctx)
}
// if this is a composite type, check the components of the type