Fixing bizarre compilation error on recent clang
This commit is contained in:
parent
9d34fad24f
commit
938e2391e2
@ -82,13 +82,13 @@ shared_ptr< TranslationUnit > TranslationUnitStore::GetOrCreate(
|
||||
filename_to_flags_hash_[ filename ] = HashForFlags( flags );
|
||||
}
|
||||
|
||||
shared_ptr< TranslationUnit > unit;
|
||||
boost::shared_ptr< TranslationUnit > unit;
|
||||
|
||||
try {
|
||||
unit = make_shared< TranslationUnit >( filename,
|
||||
unsaved_files,
|
||||
flags,
|
||||
clang_index_ );
|
||||
unit = boost::make_shared< TranslationUnit >( filename,
|
||||
unsaved_files,
|
||||
flags,
|
||||
clang_index_ );
|
||||
} catch ( ClangParseError & ) {
|
||||
Remove( filename );
|
||||
return unit;
|
||||
|
Loading…
Reference in New Issue
Block a user