mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 02:57:46 +00:00
interp: do not try to interpret functions with an inttoptr instruction
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user