[PATCH] D62718: [llvm-objcopy] Change handling of output file permissions

Alex Brachet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 15:07:01 PDT 2019


abrachet marked 3 inline comments as done.
abrachet added inline comments.


================
Comment at: llvm/tools/llvm-objcopy/Buffer.h:50
 
-  explicit FileBuffer(StringRef FileName) : Buffer(FileName) {}
+  explicit FileBuffer(StringRef FileName, unsigned Flags = 0)
+      : Buffer(FileName), Flags(Flags) {}
----------------
rupprecht wrote:
> "explicit" can be removed now that this is two-args (and there's no implicit-conversion risk)
I quickly checked if this was still the case because of the default arg, explicit does still protect here. Can be seen here if curious https://godbolt.org/z/nAlqDq


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D62718





More information about the llvm-commits mailing list