aboutsummaryrefslogtreecommitdiff
path: root/qbe.c
diff options
context:
space:
mode:
authorAndrew Chambers <andrewchambers@fastmail.com>2019-02-15 12:25:22 +1300
committerAndrew Chambers <andrewchambers@fastmail.com>2019-02-15 12:25:22 +1300
commitfc2681639fb9c989d75c8e3d5b07437070a8ecad (patch)
treec76edeeec50b0ccc773a230219e1fc40e98b7cd9 /qbe.c
parent7e5d1aca647f13c0ae3a7cb0d4aff602e6bf7bea (diff)
Fix bad assertion.
Diffstat (limited to 'qbe.c')
-rw-r--r--qbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qbe.c b/qbe.c
index ab9bf15..fd1515b 100644
--- a/qbe.c
+++ b/qbe.c
@@ -184,7 +184,7 @@ mkintconst(struct representation *r, uint64_t n)
uint64_t
intconstvalue(struct value *v)
{
- assert(v->kind = VALCONST);
+ assert(v->kind == VALCONST);
return v->i;
}