Skip to content

Commit

Permalink
Fix compilation of Any.h header.
Browse files Browse the repository at this point in the history
In a previous patch I changed `std::decay<T>::type` to `std::decay<T>`
rather than `std::decay_t<T>`.  This seems to have broken the build
*only for clang-cl*.  I don't know why.

Submitting with post-commit review because this is an obvious fix for a
build breakage and we've verified that it fixes the breakage.
  • Loading branch information
Justin Lebar committed Feb 12, 2020
1 parent 7c426fb commit 17b7741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/include/llvm/ADT/Any.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Any {
// adopting it to work-around usage of `Any` with types that
// need to be implicitly convertible from an `Any`.
llvm::negation<std::is_convertible<Any, std::decay_t<T>>>,
std::is_copy_constructible<std::decay<T>>>::value,
std::is_copy_constructible<std::decay_t<T>>>::value,
int> = 0>
Any(T &&Value) {
Storage =
Expand Down

0 comments on commit 17b7741

Please sign in to comment.