Fixing bizarre compilation error on recent clang

This commit is contained in:
Strahinja Val Markovic 2013-08-13 14:42:07 -07:00
parent 9d34fad24f
commit 938e2391e2

View File

@ -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;