aboutsummaryrefslogtreecommitdiff
path: root/src/llvm.cff
diff options
context:
space:
mode:
Diffstat (limited to 'src/llvm.cff')
-rw-r--r--src/llvm.cff3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/llvm.cff b/src/llvm.cff
index 81fe056..a81bea4 100644
--- a/src/llvm.cff
+++ b/src/llvm.cff
@@ -231,7 +231,8 @@ fn genaddr(f *Fn, ex *Expr) Value {
case Dot dot;
let lhs = dot.lhs.ty->is(:Ptr) ? genexpr(f, dot.lhs) : genaddr(f, dot.lhs);
- assert(dot.fld.off % dot.fld.ty.align == 0, "field align");
+ assert(dot.fld.off % dot.fld.ty.align == 0, "field align %s %zu %zu",
+ dot.fld.name, dot.fld.off, dot.fld.ty.align);
let idx int #?;
if dot.lhs.ty->is(:Ptr) {
idx = dot.fld - dot.lhs.ty.u.Ptr.u.Agg.flds.#ptr;