File tree 1 file changed +1
-7
lines changed
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 7
7
// similar in spirit to LLVM (but much simpler).
8
8
//
9
9
10
- #if defined(__cpp_lib_bit_cast)
11
- #include < bit>
12
- #endif
13
10
#include " ../compiler-core/slang-source-loc.h"
14
11
#include " ../compiler-core/slang-source-map.h"
15
12
#include " ../core/slang-basic.h"
16
13
#include " ../core/slang-memory-arena.h"
17
14
#include " slang-container-pool.h"
18
15
#include " slang-type-system-shared.h"
19
16
17
+ #include < bit>
20
18
#include < functional>
21
19
22
20
namespace Slang
@@ -105,11 +103,7 @@ enum IRMemoryOrder
105
103
106
104
inline int32_t operator &(const IROpMask m, const IROp o)
107
105
{
108
- #if defined(__cpp_lib_bit_cast)
109
106
return std::bit_cast<int32_t >(m) & std::bit_cast<int32_t >(o);
110
- #else
111
- return (int32_t )m & (int32_t )o;
112
- #endif
113
107
}
114
108
115
109
inline int32_t operator &(const IROp o, const IROpMask m)
You can’t perform that action at this time.
0 commit comments