temp committing major c++ification
[xonotic/gmqcc.git] / fold.cpp
index d2d6b6f143147f4028b72d2cdd17622c11f7d83f..195e8a52d897063feec0fdd97f10217ea5249a00 100644 (file)
--- a/fold.cpp
+++ b/fold.cpp
@@ -939,7 +939,7 @@ bool fold::generate(ir_builder *ir) {
     return true;
 err:
     con_out("failed to generate global %s\n", cur->name);
-    ir_builder_delete(ir);
+    delete ir;
     return false;
 }