[PATCH] D86856: [ORC][NFC] Fix gcc warning by remove the extra semicolon

Yang Fan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 30 20:49:02 PDT 2020


nullptr.cpp created this revision.
nullptr.cpp added a reviewer: lhames.
Herald added subscribers: llvm-commits, danielkiss, hiraditya.
Herald added a project: LLVM.
nullptr.cpp requested review of this revision.

Full diagnostic:

  llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp:1921:2: warning: extra ‘;’ [-Wpedantic]
   1921 | };
        |  ^

This semicolon is at the end of function definition:

  1887 std::vector<std::shared_ptr<JITDylib>>
  1888 JITDylib::getDFSLinkOrder(ArrayRef<std::shared_ptr<JITDylib>> JDs) {
         ...
  1921 };

No need to add a semicolon here, remove it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86856

Files:
  llvm/lib/ExecutionEngine/Orc/Core.cpp


Index: llvm/lib/ExecutionEngine/Orc/Core.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/Core.cpp
+++ llvm/lib/ExecutionEngine/Orc/Core.cpp
@@ -1918,7 +1918,7 @@
     }
     return Result;
   });
-};
+}
 
 std::vector<std::shared_ptr<JITDylib>>
 JITDylib::getReverseDFSLinkOrder(ArrayRef<std::shared_ptr<JITDylib>> JDs) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86856.288884.patch
Type: text/x-patch
Size: 379 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200831/83a93eec/attachment.bin>


More information about the llvm-commits mailing list