diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-06 17:36:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-06 17:36:05 +0000 |
commit | 3c7b86f4ee0af73eb77af13940cecbd2c226d7e9 (patch) | |
tree | f292e971428ad88c5e970e53292a1a067b791535 /clang/lib/Sema/SemaDecl.cpp | |
parent | 72ecc68e11e50a770cec8b72aa4a270c8aedff63 (diff) | |
download | bcm5719-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.cpp | 6 |
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). |