We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13a9098 commit 8abd5cdCopy full SHA for 8abd5cd
llvm/include/llvm/ADT/PointerUnion.h
@@ -267,7 +267,7 @@ struct ValueIsPresent<PointerUnion<PTs...>,
267
std::enable_if_t<IsNullable<PointerUnion<PTs...>>>> {
268
using Union = PointerUnion<PTs...>;
269
static bool isPresent(const Union &V) { return static_cast<bool>(V); }
270
- static decltype(auto) unwrapValue(Union &V) { return V; }
+ static Union &unwrapValue(Union &V) { return V; }
271
};
272
273
// Teach SmallPtrSet that PointerUnion is "basically a pointer", that has
0 commit comments