[llvm] 158ad80 - [examples] Fix deprecated use of llvm::empty.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 9 22:01:06 PDT 2022


Author: Lang Hames
Date: 2022-10-09T22:00:43-07:00
New Revision: 158ad803ee8106e2b385ad8b8fd0838175b0ca42

URL: https://github.com/llvm/llvm-project/commit/158ad803ee8106e2b385ad8b8fd0838175b0ca42
DIFF: https://github.com/llvm/llvm-project/commit/158ad803ee8106e2b385ad8b8fd0838175b0ca42.diff

LOG: [examples] Fix deprecated use of llvm::empty.

Added: 
    

Modified: 
    llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp b/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp
index d5ef6e5ae88ee..56da4e486f69e 100644
--- a/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp
+++ b/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp
@@ -157,7 +157,7 @@ class MyPlugin : public ObjectLinkingLayer::Plugin {
         printBlockContent(B);
         BlocksAlreadyVisited.insert(&B);
 
-        if (!llvm::empty(B.edges())) {
+        if (!B.edges().empty()) {
           outs() << "        Edges:\n";
           for (auto &E : B.edges()) {
             outs() << "          "


        


More information about the llvm-commits mailing list