summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2019-03-26 12:18:08 +0000
committerYi Kong <yikong@google.com>2019-03-26 12:18:08 +0000
commit74b874ac4c6c079f85edd1f2957b1d96e0127ea5 (patch)
tree4e8a407c1274236c449739344c9ff97797055871 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
parent545652b96485dd1e8e226ad4e1d2a56bf7520ffe (diff)
downloadbcm5719-llvm-74b874ac4c6c079f85edd1f2957b1d96e0127ea5.tar.gz
bcm5719-llvm-74b874ac4c6c079f85edd1f2957b1d96e0127ea5.zip
Fix nondeterminism introduced in r353954
DenseMap iteration order is not guaranteed, use MapVector instead. Fix provided by srhines. Differential Revision: https://reviews.llvm.org/D59807 llvm-svn: 356988
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
index e84214dbf5e..e0d397c2d41 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
@@ -17,6 +17,7 @@
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
+#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/CodeGen/ISDOpcodes.h"
@@ -121,7 +122,7 @@ class SelectionDAGBuilder {
/// Keeps track of dbg_values for which we have not yet seen the referent.
/// We defer handling these until we do see it.
- DenseMap<const Value*, DanglingDebugInfoVector> DanglingDebugInfoMap;
+ MapVector<const Value*, DanglingDebugInfoVector> DanglingDebugInfoMap;
public:
/// Loads are not emitted to the program immediately. We bunch them up and
OpenPOWER on IntegriCloud