summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-10-11 16:59:29 +0000
committerCraig Topper <craig.topper@gmail.com>2015-10-11 16:59:29 +0000
commit5b0f57df1c5d02e9047c149aac79091027186745 (patch)
treee80e14e47b14d92615e7eb00618cfad92d0d880b /llvm/utils/TableGen
parenta71630729da7ac671da67165109a54d06ae3eb4d (diff)
downloadbcm5719-llvm-5b0f57df1c5d02e9047c149aac79091027186745.tar.gz
bcm5719-llvm-5b0f57df1c5d02e9047c149aac79091027186745.zip
[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
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
index c01c0d8ce34..a91ed185461 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -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();
}
OpenPOWER on IntegriCloud