aboutsummaryrefslogtreecommitdiff
path: root/lib/base-compiler.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base-compiler.ts')
-rw-r--r--lib/base-compiler.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/base-compiler.ts b/lib/base-compiler.ts
index 5e164f267..942a49ce0 100644
--- a/lib/base-compiler.ts
+++ b/lib/base-compiler.ts
@@ -1444,6 +1444,10 @@ export class BaseCompiler implements ICompiler {
asm: ir.asm,
};
+ if (result.asm[result.asm.length - 1].text === '[truncated; too many lines]') {
+ return result;
+ }
+
if (produceCfg) {
result.cfg = cfg.generateStructure(
this.compiler,