mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 12:56:35 +00:00
Remove dependence on <ciso646> (#73273)
C++23 removed `<ciso646>` from the standard library. The header is used in two places: Once in order to pull in standard library macros. Since this file also includes `<optional>`, that use of `<ciso646>` is technically redundant, but should probably be left in in case a future change ever removes the include of `<optional>`. A second use of `<ciso646>` appears to have been introduced in da650094b187ee3c8017d74f63c885663faca1d8, but seems unnecessary (the file doesn't seem to use anything from that header, and it seems to build just fine on MSVC here without it). The new `<version>` header should be supported by all supported implementations. This change replaces uses of `<ciso646>` with the `<version>` header, or removes them entirely where unnecessary.
This commit is contained in:
parent
10ed0e4065
commit
c89735d289
@ -19,6 +19,7 @@
|
||||
#include "llvm/Config/llvm-config.h" // for LLVM_ON_UNIX
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include <optional>
|
||||
#include <version>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
// MSVC's call_once implementation worked since VS 2015, which is the minimum
|
||||
|
Loading…
x
Reference in New Issue
Block a user