Skip to content

Commit e70e37b

Browse files
Port Ubunu-24 warning fixes to npu/release/18.x (#45)
* Fix <anonymous> declared here * Fix Ubuntu24 (#33)
1 parent c6c650c commit e70e37b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/ADT/FunctionExtras.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ template <typename ReturnT, typename... ParamTs> class UniqueFunctionBase {
152152
void *StoragePtr;
153153
size_t Size;
154154
size_t Alignment;
155-
} OutOfLineStorage;
155+
} OutOfLineStorage = {};
156156
static_assert(
157157
sizeof(OutOfLineStorageT) <= InlineStorageSize,
158158
"Should always use all of the out-of-line storage for inline storage!");

llvm/include/llvm/Support/FormatProviders.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ struct format_provider<
130130
private:
131131
public:
132132
static void format(const T &V, llvm::raw_ostream &Stream, StringRef Style) {
133-
HexPrintStyle HS;
133+
HexPrintStyle HS = HexPrintStyle::PrefixUpper;
134134
size_t Digits = 0;
135135
if (consumeHexStyle(Style, HS)) {
136136
Digits = consumeNumHexDigits(Style, HS, 0);

0 commit comments

Comments
 (0)