Flag -> Glue, the ongoing saga
[oota-llvm.git] / lib / VMCore / InlineAsm.cpp
index d951a29f43c5318a2e27b6f12ac9430419cd451c..e4f99f09a5c2f97f41d695593715a12eb3b58c71 100644 (file)
@@ -47,6 +47,7 @@ InlineAsm::InlineAsm(const PointerType *Ty, const std::string &asmString,
 }
 
 void InlineAsm::destroyConstant() {
+  getRawType()->getContext().pImpl->InlineAsms.remove(this);
   delete this;
 }