[TableGen] Add a space between type and '*' in front of a variable name in output file. While there replace type with 'auto' since there's a cast on the right side of the assignment. NFC

llvm-svn: 249980
This commit is contained in:
Craig Topper 2015-10-11 16:59:29 +00:00
parent a71630729d
commit 5b0f57df1c
1 changed files with 1 additions and 1 deletions

View 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();
}