[llvm] 18d481c - SymbolRemappingReader.h - pass Twine by reference not value. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 25 04:48:47 PDT 2020


Author: Simon Pilgrim
Date: 2020-07-25T12:48:14+01:00
New Revision: 18d481cdf9d0e4a8ac5ad05007f34c944327f3d8

URL: https://github.com/llvm/llvm-project/commit/18d481cdf9d0e4a8ac5ad05007f34c944327f3d8
DIFF: https://github.com/llvm/llvm-project/commit/18d481cdf9d0e4a8ac5ad05007f34c944327f3d8.diff

LOG: SymbolRemappingReader.h - pass Twine by reference not value. NFCI.

Added: 
    

Modified: 
    llvm/include/llvm/Support/SymbolRemappingReader.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/SymbolRemappingReader.h b/llvm/include/llvm/Support/SymbolRemappingReader.h
index 2b9ab570eb8b..820cf9e02192 100644
--- a/llvm/include/llvm/Support/SymbolRemappingReader.h
+++ b/llvm/include/llvm/Support/SymbolRemappingReader.h
@@ -68,7 +68,7 @@ namespace llvm {
 
 class SymbolRemappingParseError : public ErrorInfo<SymbolRemappingParseError> {
 public:
-  SymbolRemappingParseError(StringRef File, int64_t Line, Twine Message)
+  SymbolRemappingParseError(StringRef File, int64_t Line, const Twine &Message)
       : File(File), Line(Line), Message(Message.str()) {}
 
   void log(llvm::raw_ostream &OS) const override {


        


More information about the llvm-commits mailing list