diff options
-rw-r--r-- | include/llvm/ADT/SmallString.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/ADT/SmallString.h b/include/llvm/ADT/SmallString.h index b25d1eee30..05b12d627e 100644 --- a/include/llvm/ADT/SmallString.h +++ b/include/llvm/ADT/SmallString.h @@ -46,6 +46,11 @@ public: } // Extra operators. + const SmallString &operator=(const char *RHS) { + this->clear(); + return *this += RHS; + } + SmallString &operator+=(const char *RHS) { this->append(RHS, RHS+strlen(RHS)); return *this; |