diff options
Diffstat (limited to 'src/passes/GlobalStructInference.cpp')
-rw-r--r-- | src/passes/GlobalStructInference.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/passes/GlobalStructInference.cpp b/src/passes/GlobalStructInference.cpp index 1444f8ad8..901a51a9f 100644 --- a/src/passes/GlobalStructInference.cpp +++ b/src/passes/GlobalStructInference.cpp @@ -75,6 +75,10 @@ struct GlobalStructInference : public Pass { return; } + if (!getPassOptions().closedWorld) { + Fatal() << "GSI requires --closed-world"; + } + // First, find all the information we need. We need to know which struct // types are created in functions, because we will not be able to optimize // those. |