summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.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/Sema/SemaDecl.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/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index d05340a4267..0fa5780e982 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -2327,7 +2327,7 @@ Sema::ActOnVariableDeclarator(Scope* S, Declarator& D, DeclContext* DC,
Diag(D.getDeclSpec().getStorageClassSpecLoc(),
diag::err_static_out_of_line)
<< CodeModificationHint::CreateRemoval(
- SourceRange(D.getDeclSpec().getStorageClassSpecLoc()));
+ D.getDeclSpec().getStorageClassSpecLoc());
} else if (SC == VarDecl::None)
SC = VarDecl::Static;
}
@@ -2849,7 +2849,7 @@ Sema::ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC,
// 'virtual' was specified outside of the class.
Diag(D.getDeclSpec().getVirtualSpecLoc(), diag::err_virtual_out_of_class)
<< CodeModificationHint::CreateRemoval(
- SourceRange(D.getDeclSpec().getVirtualSpecLoc()));
+ D.getDeclSpec().getVirtualSpecLoc());
} else {
// Okay: Add virtual to the method.
CXXRecordDecl *CurClass = cast<CXXRecordDecl>(DC);
@@ -2889,7 +2889,7 @@ Sema::ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC,
Diag(D.getDeclSpec().getStorageClassSpecLoc(),
diag::err_static_out_of_line)
<< CodeModificationHint::CreateRemoval(
- SourceRange(D.getDeclSpec().getStorageClassSpecLoc()));
+ D.getDeclSpec().getStorageClassSpecLoc());
}
// Handle GNU asm-label extension (encoded as an attribute).
OpenPOWER on IntegriCloud