Changeset f2a4f6c
- Timestamp:
- Aug 26, 2016, 1:55:57 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 1e8b02f5
- Parents:
- 4999940
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/LinkageSpec.cc
r4999940 rf2a4f6c 14 14 // 15 15 16 #include <memory> 16 17 #include <string> 17 18 #include <cassert> … … 21 22 22 23 LinkageSpec::Spec LinkageSpec::fromString( const std::string &spec ) { 24 std::unique_ptr<const std::string> guard(&spec); // allocated by lexer 23 25 if ( spec == "\"Cforall\"" ) { 24 26 return Cforall; … … 28 30 throw SemanticError( "Invalid linkage specifier " + spec ); 29 31 } // if 30 delete &spec; // allocated by lexer31 32 } 32 33
Note: See TracChangeset
for help on using the changeset viewer.