[llvm-branch-commits] [llvm] 0207de0 - [ORC] Prefer preincrement on iterator.

Lang Hames via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Dec 13 17:34:25 PST 2020


Author: Lang Hames
Date: 2020-12-14T12:00:21+11:00
New Revision: 0207de0bfe77b6444443adb27605e9f0fdfb8929

URL: https://github.com/llvm/llvm-project/commit/0207de0bfe77b6444443adb27605e9f0fdfb8929
DIFF: https://github.com/llvm/llvm-project/commit/0207de0bfe77b6444443adb27605e9f0fdfb8929.diff

LOG: [ORC] Prefer preincrement on iterator.

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/TPCDynamicLibrarySearchGenerator.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/TPCDynamicLibrarySearchGenerator.cpp b/llvm/lib/ExecutionEngine/Orc/TPCDynamicLibrarySearchGenerator.cpp
index 80d8f34ea447..3442da5810cb 100644
--- a/llvm/lib/ExecutionEngine/Orc/TPCDynamicLibrarySearchGenerator.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/TPCDynamicLibrarySearchGenerator.cpp
@@ -55,7 +55,7 @@ Error TPCDynamicLibrarySearchGenerator::tryToGenerate(
     if (*ResultI)
       NewSymbols[KV.first] =
           JITEvaluatedSymbol(*ResultI, JITSymbolFlags::Exported);
-    ResultI++;
+    ++ResultI;
   }
 
   // If there were no resolved symbols bail out.


        


More information about the llvm-branch-commits mailing list