summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/DeclSpec.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-05-31 11:47:27 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-05-31 11:47:27 +0000
commitfb3f1794e112b043efd73856f25e3115fe1cd582 (patch)
treed12e7e0ec9048db9c39d9b1e14fcc37b5d52b361 /clang/lib/Parse/DeclSpec.cpp
parent42a8465518cdf74ee1c78b28039261f6df942b6c (diff)
downloadbcm5719-llvm-fb3f1794e112b043efd73856f25e3115fe1cd582.tar.gz
bcm5719-llvm-fb3f1794e112b043efd73856f25e3115fe1cd582.zip
Disallow exception specs on typedefs.
llvm-svn: 72664
Diffstat (limited to 'clang/lib/Parse/DeclSpec.cpp')
-rw-r--r--clang/lib/Parse/DeclSpec.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Parse/DeclSpec.cpp b/clang/lib/Parse/DeclSpec.cpp
index f3ff0c63797..d8c6986f9ea 100644
--- a/clang/lib/Parse/DeclSpec.cpp
+++ b/clang/lib/Parse/DeclSpec.cpp
@@ -33,6 +33,7 @@ DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, bool isVariadic,
unsigned NumArgs,
unsigned TypeQuals,
bool hasExceptionSpec,
+ SourceLocation ThrowLoc,
bool hasAnyExceptionSpec,
ActionBase::TypeTy **Exceptions,
SourceRange *ExceptionRanges,
@@ -50,6 +51,7 @@ DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, bool isVariadic,
I.Fun.NumArgs = NumArgs;
I.Fun.ArgInfo = 0;
I.Fun.hasExceptionSpec = hasExceptionSpec;
+ I.Fun.ThrowLoc = ThrowLoc.getRawEncoding();
I.Fun.hasAnyExceptionSpec = hasAnyExceptionSpec;
I.Fun.NumExceptions = NumExceptions;
I.Fun.Exceptions = 0;
OpenPOWER on IntegriCloud