From 7adf2bf76a10bc873ebf9d3a88209a44bd7ad799 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 11 Dec 2014 05:25:30 +0000 Subject: Replace std::map with std::map> 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 --- llvm/lib/TableGen/TGParser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/TableGen/TGParser.h') diff --git a/llvm/lib/TableGen/TGParser.h b/llvm/lib/TableGen/TGParser.h index 79994cbc1a6..22a00e59195 100644 --- a/llvm/lib/TableGen/TGParser.h +++ b/llvm/lib/TableGen/TGParser.h @@ -55,7 +55,7 @@ namespace llvm { class TGParser { TGLexer Lex; std::vector > LetStack; - std::map MultiClasses; + std::map> MultiClasses; /// Loops - Keep track of any foreach loops we are within. /// -- cgit v1.2.3