diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp index 9f19dd285659..6380b7819ac5 100644 --- a/llvm/tools/llvm-cov/CodeCoverage.cpp +++ b/llvm/tools/llvm-cov/CodeCoverage.cpp @@ -41,6 +41,7 @@ #include #include +#include #include using namespace llvm; @@ -157,7 +158,7 @@ private: /// The coverage data path to be remapped from, and the source path to be /// remapped to, when using -path-equivalence. - Optional> PathRemapping; + std::optional> PathRemapping; /// File status cache used when finding the same file. StringMap> FileStatusCache;