[Kaleidoscope] Start C++11'ifying the kaleidoscope tutorials.

llvm-svn: 245322
diff --git a/llvm/docs/tutorial/LangImpl4.rst b/llvm/docs/tutorial/LangImpl4.rst
index cdaac63..8abb745 100644
--- a/llvm/docs/tutorial/LangImpl4.rst
+++ b/llvm/docs/tutorial/LangImpl4.rst
@@ -260,12 +260,12 @@
 
     static void HandleTopLevelExpression() {
       // Evaluate a top-level expression into an anonymous function.
-      if (FunctionAST *F = ParseTopLevelExpr()) {
-        if (Function *LF = F->Codegen()) {
-          LF->dump();  // Dump the function for exposition purposes.
+      if (auto FnAST = ParseTopLevelExpr()) {
+        if (auto *FnIR = FnAST->Codegen()) {
+          FnIR->dump();  // Dump the function for exposition purposes.
 
           // JIT the function, returning a function pointer.
-          void *FPtr = TheExecutionEngine->getPointerToFunction(LF);
+          void *FPtr = TheExecutionEngine->getPointerToFunction(FnIR);
 
           // Cast it to the right type (takes no arguments, returns a double) so we
           // can call it as a native function.