[x-project tests] Fix ambiguity in call to createStringError (NFC)

Fixes:

  https://lab.llvm.org/buildbot/#/builders/139/builds/66928/
  https://lab.llvm.org/buildbot/#/builders/216/builds/40166/
This commit is contained in:
Jonas Devlieghere 2024-06-05 11:05:30 -07:00
parent 539b72f2e1
commit 70550cd6aa
No known key found for this signature in database
GPG Key ID: 49CC0BD90FDEED4D

View File

@ -18,7 +18,7 @@ llvm::MutableArrayRef<int> MutableArrayRef(Array);
llvm::DenseMap<int, int> DenseMap = {{4, 5}, {6, 7}};
llvm::StringMap<int> StringMap = {{"foo", 123}, {"bar", 456}};
llvm::Expected<int> ExpectedValue(8);
llvm::Expected<int> ExpectedError(llvm::createStringError({}, ""));
llvm::Expected<int> ExpectedError(llvm::createStringError(""));
std::optional<int> OptionalValue(9);
std::optional<int> OptionalNone(std::nullopt);
llvm::SmallVector<int, 5> SmallVector = {10, 11, 12};