[Kaleidoscope] More inter-chapter diff reduction.
[oota-llvm.git] / docs / tutorial / LangImpl3.rst
index a2d23e7bcf9aabdb81adde7b5b570374be7e6a34..d80140ef241b1b724bff64f34334a5d7e99e749b 100644 (file)
@@ -131,7 +131,9 @@ are all uniqued together and shared. For this reason, the API uses the
     Value *VariableExprAST::Codegen() {
       // Look this variable up in the function.
       Value *V = NamedValues[Name];
-      return V ? V : ErrorV("Unknown variable name");
+      if (!V)
+        ErrorV("Unknown variable name");
+      return V;
     }
 
 References to variables are also quite simple using LLVM. In the simple