[PATCH] D131777: [ADT] Mark variable inline to avoid ODR violations in Sequence.h
Joe Loser via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 12 11:56:28 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGec7e7797b14d: [ADT] Mark variable inline to avoid ODR violations in Sequence.h (authored by joe_loser).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131777/new/
https://reviews.llvm.org/D131777
Files:
llvm/include/llvm/ADT/Sequence.h
Index: llvm/include/llvm/ADT/Sequence.h
===================================================================
--- llvm/include/llvm/ADT/Sequence.h
+++ llvm/include/llvm/ADT/Sequence.h
@@ -104,8 +104,7 @@
explicit force_iteration_on_noniterable_enum_t() = default;
};
-// TODO: Make this `inline` once we update to C++17 to avoid ORD violations.
-constexpr force_iteration_on_noniterable_enum_t
+inline constexpr force_iteration_on_noniterable_enum_t
force_iteration_on_noniterable_enum;
namespace detail {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131777.452265.patch
Type: text/x-patch
Size: 518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220812/aee414b1/attachment.bin>
More information about the llvm-commits
mailing list