Skip to content

Commit 8abd5cd

Browse files
s-barannikovkuhar
andauthored
Update llvm/include/llvm/ADT/PointerUnion.h
Co-authored-by: Jakub Kuderski <[email protected]>
1 parent 13a9098 commit 8abd5cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ADT/PointerUnion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ struct ValueIsPresent<PointerUnion<PTs...>,
267267
std::enable_if_t<IsNullable<PointerUnion<PTs...>>>> {
268268
using Union = PointerUnion<PTs...>;
269269
static bool isPresent(const Union &V) { return static_cast<bool>(V); }
270-
static decltype(auto) unwrapValue(Union &V) { return V; }
270+
static Union &unwrapValue(Union &V) { return V; }
271271
};
272272

273273
// Teach SmallPtrSet that PointerUnion is "basically a pointer", that has

0 commit comments

Comments
 (0)