interp: do not try to interpret functions with an inttoptr instruction

This commit is contained in:
Ayke van Laethem
2018-11-18 18:41:59 +01:00
parent 27fc397e21
commit dbf581b56d
+3
View File
@@ -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: