forked from OSchip/llvm-project
[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:
parent
a71630729d
commit
5b0f57df1c
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue