[PATCH] D149274: [NFC][Clang]Remove a e reference on argument since 'Name' is not modified'

Mingming Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 26 10:55:59 PDT 2023


mingmingl created this revision.
Herald added a project: All.
mingmingl requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149274

Files:
  clang/lib/Basic/Targets/X86.cpp


Index: clang/lib/Basic/Targets/X86.cpp
===================================================================
--- clang/lib/Basic/Targets/X86.cpp
+++ clang/lib/Basic/Targets/X86.cpp
@@ -1213,7 +1213,7 @@
       .Default(false);
 }
 
-static unsigned matchAsmCCConstraint(const char *&Name) {
+static unsigned matchAsmCCConstraint(const char *Name) {
   auto RV = llvm::StringSwitch<unsigned>(Name)
                 .Case("@cca", 4)
                 .Case("@ccae", 5)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149274.517241.patch
Type: text/x-patch
Size: 464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230426/e0712ffe/attachment-0001.bin>


More information about the cfe-commits mailing list