diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-12-01 09:16:02 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-12-01 13:32:09 +0000 |
commit | 325665cc5234fff09cf714979db711c3e3e60fb6 (patch) | |
tree | 19900d867c19cc41970f392483b755704266019e /user/llvm14/dwarf-info.patch | |
parent | e8adedc8d15b9b11e780df8bda2d7431c23d627f (diff) | |
download | packages-325665cc5234fff09cf714979db711c3e3e60fb6.tar.gz packages-325665cc5234fff09cf714979db711c3e3e60fb6.tar.bz2 packages-325665cc5234fff09cf714979db711c3e3e60fb6.tar.xz packages-325665cc5234fff09cf714979db711c3e3e60fb6.zip |
user/llvm14: Fix DWARF patch for x86
It turns out we *have* to specify signedness or we have incorrect results
on systems with signed-char by default (aka x86).
Tested on ppc64 and x86_64 and both pass tests now.
Fixes: #911
Diffstat (limited to 'user/llvm14/dwarf-info.patch')
-rw-r--r-- | user/llvm14/dwarf-info.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/user/llvm14/dwarf-info.patch b/user/llvm14/dwarf-info.patch index 44b9e88ad..9357c6519 100644 --- a/user/llvm14/dwarf-info.patch +++ b/user/llvm14/dwarf-info.patch @@ -22,7 +22,7 @@ where char is default-unsigned. OS << "'"; } else if (Val < 256) - OS << to_string(llvm::format("'\\x%02x'", Val)); -+ OS << to_string(llvm::format("'\\x%02x'", (char)Val)); ++ OS << to_string(llvm::format("'\\x%02x'", (unsigned char)Val)); else if (Val <= 0xFFFF) OS << to_string(llvm::format("'\\u%04x'", Val)); else |