Author: Aiden Grossman Date: 2026-05-06T22:56:31Z New Revision: 3bd61c6d1588b5237219acd8ffc875420802c23f
URL: https://github.com/llvm/llvm-project/commit/3bd61c6d1588b5237219acd8ffc875420802c23f DIFF: https://github.com/llvm/llvm-project/commit/3bd61c6d1588b5237219acd8ffc875420802c23f.diff LOG: formatting Added: Modified: llvm/include/llvm/Support/JSON.h Removed: ################################################################################ diff --git a/llvm/include/llvm/Support/JSON.h b/llvm/include/llvm/Support/JSON.h index 9dd0a656251db..b7aeacbe9ab6f 100644 --- a/llvm/include/llvm/Support/JSON.h +++ b/llvm/include/llvm/Support/JSON.h @@ -47,9 +47,9 @@ #define LLVM_SUPPORT_JSON_H #include "llvm/ADT/DenseMap.h" +#include "llvm/ADT/STLFunctionalExtras.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" -#include "llvm/ADT/STLFunctionalExtras.h" #include "llvm/Support/Error.h" #include "llvm/Support/FormatVariadic.h" #include "llvm/Support/raw_ostream.h" @@ -489,7 +489,7 @@ class Value { friend class Array; friend class Object; - template <typename T, typename... U> void create(U &&... V) { + template <typename T, typename... U> void create(U &&...V) { new (reinterpret_cast<T *>(&Union)) T(std::forward<U>(V)...); } template <typename T> T &as() const { _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
