diff options
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
-rw-r--r-- | llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp index 51a2503..ac36650 100644 --- a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp +++ b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp @@ -689,7 +689,8 @@ static Optional<unsigned> findMainViewFileID(const FunctionRecord &Function) { } /// Check if SourceFile is the file that contains the definition of -/// the Function. Return the ID of the file in that case or None otherwise. +/// the Function. Return the ID of the file in that case or std::nullopt +/// otherwise. static Optional<unsigned> findMainViewFileID(StringRef SourceFile, const FunctionRecord &Function) { Optional<unsigned> I = findMainViewFileID(Function); |