diff --git a/compiler/llvm_backend/src/codegen.rs b/compiler/llvm_backend/src/codegen.rs index 769ce51e..90fd5916 100644 --- a/compiler/llvm_backend/src/codegen.rs +++ b/compiler/llvm_backend/src/codegen.rs @@ -125,8 +125,7 @@ impl<'a> CodegenEngine<'a> { LLVMBuildBr(self.ctx.builder, dest_block); } TerminatorKind::Throw(_) => { - // TODO: Implement exception handling or unwind - LLVMBuildUnreachable(self.ctx.builder); + return Err("Exception handling (throw) is not yet implemented in the LLVM backend".to_string()); } TerminatorKind::ConditionalJump { cond,