Skip to content
Commit 7adf2bf7 authored by Craig Topper's avatar Craig Topper
Browse files

Replace std::map<K, V*> with std::map<K, std::unique_ptr<V>> to handle...

Replace std::map<K, V*> with std::map<K, std::unique_ptr<V>> to handle ownership and deletion of the values.

Ideally we would store the MultiClasses by value directly in the maps, but I had some trouble with that before and this at least fixes the leak.

llvm-svn: 223997
parent 611a3ef0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment