From b8ce780688d0949bccc0e62fe5f56228ea8fd904 Mon Sep 17 00:00:00 2001 From: Lukas Korencik Date: Sun, 10 Apr 2022 19:47:03 +0200 Subject: [PATCH] bc:util: Add missing documentation. --- lib/BC/Util.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/BC/Util.cpp b/lib/BC/Util.cpp index 5dcdc553..3b1d05d7 100644 --- a/lib/BC/Util.cpp +++ b/lib/BC/Util.cpp @@ -384,6 +384,7 @@ llvm::GlobalVariable *FindGlobaVariable(llvm::Module *module, std::unique_ptr LoadArchSemantics(const Arch *arch, const std::vector &sem_dirs) { auto arch_name = GetArchName(arch->arch_name); + // If `sem_dirs` does not contain the dir, fallback to compiled in paths. auto path = FindSemanticsBitcodeFile(arch_name, sem_dirs, true); // TODO(lukas): We can propagate error up, but we should first check each callsite // properly checks for possible error (this could not return pointer