Commit e3650a48 authored by Kevin Modzelewski's avatar Kevin Modzelewski

llvm::DenseMap is unsuitable with arbitrary integer keys

It needs to reserve some special key values that the caller
has to promise to never insert into the map.  For integers that's
-1 and -2... which we were using and then got some random data back.
parent 45ffeafe
......@@ -321,7 +321,7 @@ private:
// Loads the constant into any register or if already in a register just return it
assembler::Register loadConst(uint64_t val, Location otherThan = Location::any());
llvm::DenseMap<uint64_t, RewriterVar*> constToVar;
std::unordered_map<uint64_t, RewriterVar*> constToVar;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment