Make TreePattern::error use Twine

The underlying error function already uses a Twine,
and most of the uses build up strings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221740 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Arsenault
2014-11-11 23:48:11 +00:00
parent 7ad8db4cbb
commit a735d521e7
2 changed files with 2 additions and 2 deletions

View File

@ -1908,7 +1908,7 @@ TreePattern::TreePattern(Record *TheRec, TreePatternNode *Pat, bool isInput,
Trees.push_back(Pat);
}
void TreePattern::error(const std::string &Msg) {
void TreePattern::error(const Twine &Msg) {
if (HasError)
return;
dump();