summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-06 17:36:05 +0000
committerChris Lattner <sabre@nondot.org>2009-12-06 17:36:05 +0000
commit3c7b86f4ee0af73eb77af13940cecbd2c226d7e9 (patch)
treef292e971428ad88c5e970e53292a1a067b791535 /clang/lib/Parse/ParseDecl.cpp
parent72ecc68e11e50a770cec8b72aa4a270c8aedff63 (diff)
downloadbcm5719-llvm-3c7b86f4ee0af73eb77af13940cecbd2c226d7e9.tar.gz
bcm5719-llvm-3c7b86f4ee0af73eb77af13940cecbd2c226d7e9.zip
remove some extraneous syntax: sourceloc implicitly converts to sourcerange.
llvm-svn: 90710
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index b13dc733567..4d8010bce21 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -1616,7 +1616,7 @@ void Parser::ParseStructUnionBody(SourceLocation RecordLoc,
// Check for extraneous top-level semicolon.
if (Tok.is(tok::semi)) {
Diag(Tok, diag::ext_extra_struct_semi)
- << CodeModificationHint::CreateRemoval(SourceRange(Tok.getLocation()));
+ << CodeModificationHint::CreateRemoval(Tok.getLocation());
ConsumeToken();
continue;
}
@@ -1841,7 +1841,7 @@ void Parser::ParseEnumBody(SourceLocation StartLoc, DeclPtrTy EnumDecl) {
!(getLang().C99 || getLang().CPlusPlus0x))
Diag(CommaLoc, diag::ext_enumerator_list_comma)
<< getLang().CPlusPlus
- << CodeModificationHint::CreateRemoval((SourceRange(CommaLoc)));
+ << CodeModificationHint::CreateRemoval(CommaLoc);
}
// Eat the }.
OpenPOWER on IntegriCloud