Make TreePattern::error use Twine
[oota-llvm.git] / utils / TableGen / CodeGenDAGPatterns.h
index 5becec370fd86d849c1b9b59e25e87560ea44a57..1a4eaec6ac0594f3a03ecdc99d053be879748552 100644 (file)
@@ -597,7 +597,7 @@ public:
 
   /// error - If this is the first error in the current resolution step,
   /// print it and set the error flag.  Otherwise, continue silently.
-  void error(const std::string &Msg);
+  void error(const Twine &Msg);
   bool hasError() const {
     return HasError;
   }