summaryrefslogtreecommitdiff
path: root/src/mir/mir_ptr.cpp
blob: 5535d9bfdccfbe2ce873014fd8f60fc9ee94cd3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * MRustC - Rust Compiler
 * - By John Hodge (Mutabah/thePowersGang)
 *
 * mir/mir_ptr.cpp
 * - Destructor for MIR function pointers (cold path code)
 */
#include "mir_ptr.hpp"
#include "mir.hpp"


void ::MIR::FunctionPointer::reset()
{
    if( this->ptr ) {
        delete this->ptr;
        this->ptr = nullptr;
    }
}