[llvm] [orc-rt] Apply noexcept to newly fixed Expected::isFailureOfType. (PR #207106)

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 18:27:11 PDT 2026


https://github.com/lhames created https://github.com/llvm/llvm-project/pull/207106

None

>From 86949801e131fe5a1a94a450fd2a02b4a4abafb4 Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at gmail.com>
Date: Thu, 2 Jul 2026 11:24:39 +1000
Subject: [PATCH] [orc-rt] Apply noexcept to newly fixed
 Expected::isFailureOfType.

---
 orc-rt/include/orc-rt/Error.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/orc-rt/include/orc-rt/Error.h b/orc-rt/include/orc-rt/Error.h
index eecd836dc58d6..9805ea95ec634 100644
--- a/orc-rt/include/orc-rt/Error.h
+++ b/orc-rt/include/orc-rt/Error.h
@@ -436,7 +436,7 @@ template <typename T> class ORC_RT_NODISCARD Expected {
   }
 
   /// Returns true if this Expected value holds an Error of type error_type.
-  template <typename ErrT> bool isFailureOfType() const {
+  template <typename ErrT> bool isFailureOfType() const noexcept {
     return HasError && (*getErrorStorage())->template isA<ErrT>();
   }
 



More information about the llvm-commits mailing list