diff --git a/include/llvm/ADT/Optional.h b/include/llvm/ADT/Optional.h index fd1da74bb79..81d73ed8b99 100644 --- a/include/llvm/ADT/Optional.h +++ b/include/llvm/ADT/Optional.h @@ -142,6 +142,12 @@ template struct simplify_type > : public simplify_type > {}; +template struct isPodLike; +template struct isPodLike > { + // An Optional is pod-like if T is. + static const bool value = isPodLike::value; +}; + /// \brief Poison comparison between two \c Optional objects. Clients needs to /// explicitly compare the underlying values and account for empty \c Optional /// objects.