Skip to content
Browse files

Don't optimize FFI functions.

  • Loading branch information...
1 parent f9165c2 commit 9c239a06d8eea485c21633ea0dc1b6e3da56afc5 @alexrp alexrp committed Aug 4, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/mci/optimizer/manager.d
View
3 src/mci/optimizer/manager.d
@@ -157,6 +157,9 @@ public final class OptimizationManager
if (function_.attributes & FunctionAttributes.noOptimization)
return;
+ if (first(function_.blocks[entryBlockName].stream).opCode is opFFI)
+ return;
+
if (first(function_.blocks[entryBlockName].stream).opCode is opRaw)
return;

0 comments on commit 9c239a0

Please sign in to comment.
Something went wrong with that request. Please try again.