[llvm] 34a5669 - [ORC] Fix SymbolLookupSet::containsDuplicates()

Stefan Gränitz via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 12:01:49 PDT 2020


Author: Stefan Gränitz
Date: 2020-08-13T21:01:21+02:00
New Revision: 34a5669ccd8b8c4edd35488a5ece407f0ed77601

URL: https://github.com/llvm/llvm-project/commit/34a5669ccd8b8c4edd35488a5ece407f0ed77601
DIFF: https://github.com/llvm/llvm-project/commit/34a5669ccd8b8c4edd35488a5ece407f0ed77601.diff

LOG: [ORC] Fix SymbolLookupSet::containsDuplicates()

Added: 
    

Modified: 
    llvm/include/llvm/ExecutionEngine/Orc/Core.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ExecutionEngine/Orc/Core.h b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
index a117acefd2d3..101017f89def 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Core.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
@@ -287,7 +287,7 @@ class SymbolLookupSet {
     for (UnderlyingVector::size_type I = 1; I != Symbols.size(); ++I)
       if (Symbols[I].first == Symbols[I - 1].first)
         return true;
-    return true;
+    return false;
   }
 #endif
 


        


More information about the llvm-commits mailing list