Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/LinkageSpec.cc

    rf2a4f6c r79970ed  
    1414//
    1515
    16 #include <memory>
    1716#include <string>
    1817#include <cassert>
     
    2221
    2322LinkageSpec::Spec LinkageSpec::fromString( const std::string &spec ) {
    24         std::unique_ptr<const std::string> guard(&spec);                // allocated by lexer
    2523        if ( spec == "\"Cforall\"" ) {
    2624                return Cforall;
     
    3028                throw SemanticError( "Invalid linkage specifier " + spec );
    3129        } // if
     30        delete &spec;                                                                           // allocated by lexer
    3231}
    3332
Note: See TracChangeset for help on using the changeset viewer.