| 488 | class ObjectKey { |
| 489 | public: |
| 490 | ObjectKey(const char *S) : ObjectKey(StringRef(S)) {} |
| 491 | ObjectKey(std::string S) : Owned(new std::string(std::move(S))) { |
| 492 | if (LLVM_UNLIKELY(!isUTF8(*Owned))) { |
| 493 | assert(false && "Invalid UTF-8 in value used as JSON"); |