diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-05-28 06:38:32 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-05-28 06:38:32 +0000 |
commit | aac3ba8fad385924ca1a0bdca851762d47abe7ce (patch) | |
tree | e25c78a7ab385a86ef69bf06485a6120e514b0ad /lib/TableGen | |
parent | 38e3e6a1955b5847498bedde39ab05464a9d2852 (diff) | |
download | llvm-aac3ba8fad385924ca1a0bdca851762d47abe7ce.tar.gz |
[TableGen] Use DefInit::getAsString instead of getDef()->getName(). NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen')
-rw-r--r-- | lib/TableGen/Record.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp index 9f71e1347f6d..3089a13c6bc3 100644 --- a/lib/TableGen/Record.cpp +++ b/lib/TableGen/Record.cpp @@ -722,7 +722,7 @@ Init *UnOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { return LHSs; if (DefInit *LHSd = dyn_cast<DefInit>(LHS)) - return StringInit::get(LHSd->getDef()->getName()); + return StringInit::get(LHSd->getAsString()); if (IntInit *LHSi = dyn_cast<IntInit>(LHS)) return StringInit::get(LHSi->getAsString()); |