[TableGen] Add a space between type and '*' in front of a variable name in output...
authorCraig Topper <craig.topper@gmail.com>
Sun, 11 Oct 2015 16:59:29 +0000 (16:59 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 11 Oct 2015 16:59:29 +0000 (16:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249980 91177308-0d34-0410-b5e6-96231b3b80d8

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
   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();
 }
   
   return Result + getPredCode();
 }