[PATCH] D121495: [Support] Add const to `FileError::getFileName`

Ben Barham via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 14 11:45:38 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3466b8e23d9c: [Support] Add const to `FileError::getFileName` (authored by bnbarham).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121495/new/

https://reviews.llvm.org/D121495

Files:
  llvm/include/llvm/Support/Error.h


Index: llvm/include/llvm/Support/Error.h
===================================================================
--- llvm/include/llvm/Support/Error.h
+++ llvm/include/llvm/Support/Error.h
@@ -1281,7 +1281,7 @@
     return OS.str();
   }
 
-  StringRef getFileName() { return FileName; }
+  StringRef getFileName() const { return FileName; }
 
   Error takeError() { return Error(std::move(Err)); }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121495.415176.patch
Type: text/x-patch
Size: 397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220314/8a60fa2a/attachment.bin>


More information about the llvm-commits mailing list