From 1f74b01d44805d51fd96a6dc68185f2a9425826e Mon Sep 17 00:00:00 2001 From: Ramon Asuncion Date: Thu, 28 May 2026 12:40:23 -0400 Subject: [PATCH] Make Source::getDebugInfo return its tracked DIFile --- compiler/ceramic.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/ceramic.hpp b/compiler/ceramic.hpp index 134d54572..6081abc55 100644 --- a/compiler/ceramic.hpp +++ b/compiler/ceramic.hpp @@ -583,7 +583,9 @@ struct Source : public Object { [[nodiscard]] const char *endData() const { return buffer->getBufferEnd(); } [[nodiscard]] size_t size() const { return buffer->getBufferSize(); } - [[nodiscard]] llvm::DIFile *getDebugInfo() const { return nullptr; } + [[nodiscard]] llvm::DIFile *getDebugInfo() const { + return llvm::dyn_cast_or_null(debugInfo.get()); + } }; struct Location {