From: Mandeep Singh Grang Date: Wed, 30 Aug 2017 04:47:21 +0000 (+0000) Subject: [cfi] Fixed non-determinism in codegen due to DenseSet iteration order X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8215489bb5a7edd5f1db3bce4f43b02456a4e99;p=llvm [cfi] Fixed non-determinism in codegen due to DenseSet iteration order git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312098 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/CrossDSOCFI.cpp b/lib/Transforms/IPO/CrossDSOCFI.cpp index 0098b60cb6a..7ad5c8c0216 100644 --- a/lib/Transforms/IPO/CrossDSOCFI.cpp +++ b/lib/Transforms/IPO/CrossDSOCFI.cpp @@ -13,8 +13,8 @@ //===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO/CrossDSOCFI.h" -#include "llvm/ADT/DenseSet.h" #include "llvm/ADT/EquivalenceClasses.h" +#include "llvm/ADT/SetVector.h" #include "llvm/ADT/Statistic.h" #include "llvm/ADT/Triple.h" #include "llvm/IR/Constant.h" @@ -82,7 +82,7 @@ ConstantInt *CrossDSOCFI::extractNumericTypeId(MDNode *MD) { void CrossDSOCFI::buildCFICheck(Module &M) { // FIXME: verify that __cfi_check ends up near the end of the code section, // but before the jump slots created in LowerTypeTests. - llvm::DenseSet TypeIds; + SetVector TypeIds; SmallVector Types; for (GlobalObject &GO : M.global_objects()) { Types.clear();