summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
index da5ab0b9fb7..1e34d30ad25 100644
--- a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
@@ -68,6 +68,8 @@ RegisterBankInfo::~RegisterBankInfo() {
delete It.second;
for (auto It : MapOfValueMappings)
delete It.second;
+ for (auto It : MapOfOperandsMappings)
+ delete[] It.second;
}
bool RegisterBankInfo::verify(const TargetRegisterInfo &TRI) const {
OpenPOWER on IntegriCloud