[clang] [compiler-rt] [flang] [libcxxabi] [lldb] [clang-tools-extra] [libcxx] [llvm] [libc] [lld] [libunwind] [openmp] [mlir] [C23] Implement N3018: The constexpr specifier for object definitions (PR #73099)

via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 5 07:38:37 PST 2023


================
@@ -1914,6 +1914,17 @@ class StringLiteral final
     llvm_unreachable("Unsupported character width!");
   }
 
+  // Get code unit but preserve sign info.
+  int64_t getCodeUnitS(size_t I, uint64_t ByteWidth) const {
----------------
cor3ntin wrote:

```suggestion
  int64_t getCodeUnitS(size_t I, uint64_t BitWidth) const {
```
ByteWidth is actually a number of bits, right?


https://github.com/llvm/llvm-project/pull/73099


More information about the cfe-commits mailing list