compiler; add position information to createConstant

Non-functional change. The position information will be used later to
emit debug info locations to string constants.
This commit is contained in:
Ayke van Laethem
2023-03-05 17:34:36 +01:00
committed by Ayke
parent 930255ff46
commit 0ce539ad42
13 changed files with 109 additions and 108 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ func (b *builder) parseMakeClosure(expr *ssa.MakeClosure) (llvm.Value, error) {
boundVars := make([]llvm.Value, len(expr.Bindings))
for i, binding := range expr.Bindings {
// The context stores the bound variables.
llvmBoundVar := b.getValue(binding)
llvmBoundVar := b.getValue(binding, getPos(expr))
boundVars[i] = llvmBoundVar
}