mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +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() {
|
if inst.IsVolatile() {
|
||||||
result.updateSeverity(sideEffectLimited)
|
result.updateSeverity(sideEffectLimited)
|
||||||
}
|
}
|
||||||
|
case llvm.IntToPtr:
|
||||||
|
// Pointer casts are not yet supported.
|
||||||
|
result.updateSeverity(sideEffectLimited)
|
||||||
default:
|
default:
|
||||||
// Ignore most instructions.
|
// Ignore most instructions.
|
||||||
// Check this list for completeness:
|
// Check this list for completeness:
|
||||||
|
|||||||
Reference in New Issue
Block a user