From 90f6d0dfcd9fb9024d73d3cf6708daa410b39c53 Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Mon, 10 Feb 2020 19:38:44 -0800 Subject: [PATCH] Fix SFINAE in JSON.h constructor. Summary: This used std::enable_if without referencing ::type. Changed to use std::enable_if_t. Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D74381 --- include/llvm/Support/JSON.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Support/JSON.h b/include/llvm/Support/JSON.h index f0bab51ad4d..ad746b62c2a 100644 --- a/include/llvm/Support/JSON.h +++ b/include/llvm/Support/JSON.h @@ -354,7 +354,7 @@ public: } // Serializable types: with a toJSON(const T&)->Value function, found by ADL. template ::value>, Value * = nullptr> Value(const T &V) : Value(toJSON(V)) {}