From dbf581b56d18e729a1be46ad11d387e93a74b047 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sun, 18 Nov 2018 18:41:59 +0100 Subject: [PATCH] interp: do not try to interpret functions with an inttoptr instruction --- interp/scan.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interp/scan.go b/interp/scan.go index 42a17e59..b0d2d3aa 100644 --- a/interp/scan.go +++ b/interp/scan.go @@ -92,6 +92,9 @@ func (e *Eval) hasSideEffects(fn llvm.Value) *sideEffectResult { if inst.IsVolatile() { result.updateSeverity(sideEffectLimited) } + case llvm.IntToPtr: + // Pointer casts are not yet supported. + result.updateSeverity(sideEffectLimited) default: // Ignore most instructions. // Check this list for completeness: