Skip to content
  • Steve Naroff's avatar
    Fix <rdar://problem/6451399> problems with labels and blocks. · d123bd05
    Steve Naroff authored
    - Move the 'LabelMap' from Sema to Scope. To avoid layering problems, the second element is now a 'StmtTy *', which makes the LabelMap a bit more verbose to deal with.
    - Add 'ActiveScope' to Sema. Managed by ActOnStartOfFunctionDef(), ObjCActOnStartOfMethodDef(), ActOnBlockStmtExpr().
    - Changed ActOnLabelStmt(), ActOnGotoStmt(), ActOnAddrLabel(), and ActOnFinishFunctionBody() to use the new ActiveScope.
    - Added FIXME to workaround in ActOnFinishFunctionBody() (for dealing with C++ nested functions).  
    
    llvm-svn: 65694
    d123bd05
Loading