[TableGen] Add a space between type and '*' in front of a variable name in output...
[oota-llvm.git] / utils / TableGen / CodeGenDAGPatterns.cpp
index c01c0d8..a91ed18 100644 (file)
@@ -771,7 +771,7 @@ std::string TreePredicateFn::getCodeToRunOnSDNode() const {
   if (ClassName == "SDNode")
     Result = "    SDNode *N = Node;\n";
   else
-    Result = "    " + ClassName + "*N = cast<" + ClassName + ">(Node);\n";
+    Result = "    auto *N = cast<" + ClassName + ">(Node);\n";
   
   return Result + getPredCode();
 }