Two fixes: 
1) fix a crash on test/Sema/default.c by making
   sure that the switch scope is non-null.
2) if there is an error sema'ing a default or case stmt,
   make sure to return the substmt up, so that the error
   recovery code has more acurate info to continue with.

llvm-svn: 40134
3 files changed
tree: 7234663ec6282eb90ffe719696717a0aaf0cb176
  1. clang/
  2. llvm/
  3. stacker/