There will be a separate patch for lastprivate variables - the codegen for lastprivates is very similar to codegen for privates and firstprivates. I'll prepare it as soon as codegen for privates and firstprivates is approved and committed. http://reviews.llvm.org/D5184