Fix <rdar://problem/6243503> [sema] @throw; accepted outside catch block.
llvm-svn: 64318
diff --git a/clang/Driver/PrintParserCallbacks.cpp b/clang/Driver/PrintParserCallbacks.cpp
index b8957e5..e3850ba 100644
--- a/clang/Driver/PrintParserCallbacks.cpp
+++ b/clang/Driver/PrintParserCallbacks.cpp
@@ -402,7 +402,8 @@
}
virtual OwningStmtResult ActOnObjCAtThrowStmt(SourceLocation AtLoc,
- ExprArg Throw) {
+ ExprArg Throw,
+ Scope *CurScope) {
llvm::cout << __FUNCTION__ << "\n";
return StmtEmpty();
}