[HIPIFY][fix][#1109] Do not preserve extern __shared__ for IncompleteArrayType

+ Update tests accordingly
Этот коммит содержится в:
Evgeny Mankov
2019-05-15 20:05:56 +03:00
родитель 8def9412ff
Коммит fa3dda9107
3 изменённых файлов: 4 добавлений и 1 удалений
+1 -1
Просмотреть файл
@@ -352,7 +352,7 @@ bool HipifyAction::cudaSharedIncompleteArrayVar(const clang::ast_matchers::Match
}
if (!typeName.empty()) {
clang::SourceLocation slStart = llcompat::getBeginLoc(sharedVar->getTypeSourceInfo()->getTypeLoc());
clang::SourceLocation slStart = sharedVar->getOuterLocStart();
clang::SourceLocation slEnd = llcompat::getEndLoc(sharedVar->getTypeSourceInfo()->getTypeLoc());
clang::SourceManager* SM = Result.SourceManager;
size_t repLength = SM->getCharacterData(slEnd) - SM->getCharacterData(slStart) + 1;