summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExceptionSpec.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-31 17:46:05 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-31 17:46:05 +0000
commita771f46c82d7986ba0ceb0a8b656de1b28eacf49 (patch)
tree1d52ccd9051ed70479f9d0b30e33e9473960cc5e /clang/lib/Sema/SemaExceptionSpec.cpp
parentc1d2d8a0143f6b8466f5c02932d0ad0021e479fc (diff)
downloadbcm5719-llvm-a771f46c82d7986ba0ceb0a8b656de1b28eacf49.tar.gz
bcm5719-llvm-a771f46c82d7986ba0ceb0a8b656de1b28eacf49.zip
Reinstate my CodeModificationHint -> FixItHint renaming patch, without
the C-only "optimization". llvm-svn: 100022
Diffstat (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp')
-rw-r--r--clang/lib/Sema/SemaExceptionSpec.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp
index fab94df4d04..53e9385749f 100644
--- a/clang/lib/Sema/SemaExceptionSpec.cpp
+++ b/clang/lib/Sema/SemaExceptionSpec.cpp
@@ -210,8 +210,7 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
// late-specified return types.
Diag(New->getLocation(), diag::warn_missing_exception_specification)
<< New << OS.str()
- << CodeModificationHint::CreateInsertion(AfterParenLoc,
- " " + OS.str().str());
+ << FixItHint::CreateInsertion(AfterParenLoc, " " + OS.str().str());
}
if (!Old->getLocation().isInvalid())
OpenPOWER on IntegriCloud