Fix two @synchronized bugs found by inspection: the expression to sychronize on should only be evaluated once, and it is evaluated outside the cleanup scope.

Also, lift SyncEnter and SyncExit up in nervous anticipation of x86-64
zero cost EH.

llvm-svn: 65362
2 files changed
tree: 382d86cf4117aa1db070b876a2b3ee1090a9982c
  1. clang/
  2. llvm/