[llvm] [Remarks] Fix missing include in HotnessThresholdParser for Expected (PR #113755)

Thomas Fransham via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 25 23:49:33 PDT 2024


https://github.com/fsfod created https://github.com/llvm/llvm-project/pull/113755

The use of Expected<> requires llvm/Support/Error.h to be included.

>From fa7187c502cc9dbd1a379aa98efd22e7750c0487 Mon Sep 17 00:00:00 2001
From: Thomas Fransham <tfransham at gmail.com>
Date: Thu, 17 Oct 2024 20:50:40 +0100
Subject: [PATCH] [Remarks] Fix missing include in HotnessThresholdParser for
 Expected

The use of Expected<> requires llvm/Support/Error.h to be included.
---
 llvm/include/llvm/Remarks/HotnessThresholdParser.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/include/llvm/Remarks/HotnessThresholdParser.h b/llvm/include/llvm/Remarks/HotnessThresholdParser.h
index 4cd0d2dff2fe64..374992de59878a 100644
--- a/llvm/include/llvm/Remarks/HotnessThresholdParser.h
+++ b/llvm/include/llvm/Remarks/HotnessThresholdParser.h
@@ -16,6 +16,7 @@
 #define LLVM_REMARKS_HOTNESSTHRESHOLDPARSER_H
 
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/Error.h"
 #include <optional>
 
 namespace llvm {



More information about the llvm-commits mailing list