Files
clang-p2996/llvm/lib/Support/xxhash.cpp
Benjamin Kramer 72eac42f21 [xxHash] Don't trigger UB on empty StringRef
This is quite silly, but casting to uintptr_t seems like the easiest
option to quiet ubsan.

llvm/lib/Support/xxhash.cpp:107:12: runtime error: applying non-zero offset 8 to null pointer
    #0 0x7fe3660404c0 in llvm::xxHash64(llvm::StringRef) llvm/lib/Support/xxhash.cpp:107:12
2023-02-08 12:53:54 +01:00

4.2 KiB