aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/SourceCodeTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Tooling/SourceCodeTest.cpp')
-rw-r--r--clang/unittests/Tooling/SourceCodeTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Tooling/SourceCodeTest.cpp b/clang/unittests/Tooling/SourceCodeTest.cpp
index badc6f8..2d4757c 100644
--- a/clang/unittests/Tooling/SourceCodeTest.cpp
+++ b/clang/unittests/Tooling/SourceCodeTest.cpp
@@ -474,7 +474,7 @@ int c = BAR 3.0;
IntLitVisitor Visitor;
Visitor.OnIntLit = [](IntegerLiteral *Expr, ASTContext *Context) {
auto Range = CharSourceRange::getTokenRange(Expr->getSourceRange());
- EXPECT_FALSE(getRangeForEdit(Range, *Context).hasValue());
+ EXPECT_FALSE(getRangeForEdit(Range, *Context));
};
Visitor.runOver(Code);
}