aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp/frame.go
diff options
context:
space:
mode:
Diffstat (limited to 'interp/frame.go')
-rw-r--r--interp/frame.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/interp/frame.go b/interp/frame.go
index a8d85095a..b3ba843b9 100644
--- a/interp/frame.go
+++ b/interp/frame.go
@@ -160,6 +160,9 @@ func (fr *frame) evalBasicBlock(bb, incoming llvm.BasicBlock, indent string) (re
case !inst.IsAFPExtInst().IsNil():
value := fr.getLocal(inst.Operand(0))
fr.locals[inst] = &LocalValue{fr.Eval, fr.builder.CreateFPExt(value.(*LocalValue).Value(), inst.Type(), "")}
+ case !inst.IsAPtrToIntInst().IsNil():
+ value := fr.getLocal(inst.Operand(0))
+ fr.locals[inst] = &LocalValue{fr.Eval, fr.builder.CreatePtrToInt(value.Value(), inst.Type(), "")}
case !inst.IsABitCastInst().IsNil() && inst.Type().TypeKind() == llvm.PointerTypeKind:
operand := inst.Operand(0)
if !operand.IsACallInst().IsNil() {