File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ bool clang::CreateHLSLAttributedResourceType(
573573 assert (AttrList.size () && " expected list of resource attributes" );
574574
575575 QualType ContainedTy = QualType ();
576- TypeSourceInfo *ContainedTyInfo;
576+ TypeSourceInfo *ContainedTyInfo = nullptr ;
577577 SourceLocation LocBegin = AttrList[0 ]->getRange ().getBegin ();
578578 SourceLocation LocEnd = AttrList[0 ]->getRange ().getEnd ();
579579
@@ -641,7 +641,7 @@ bool clang::CreateHLSLAttributedResourceType(
641641 ResType = S.getASTContext ().getHLSLAttributedResourceType (
642642 Wrapped, ContainedTy, ResAttrs);
643643
644- if (LocInfo) {
644+ if (LocInfo && ContainedTyInfo ) {
645645 LocInfo->Range = SourceRange (LocBegin, LocEnd);
646646 LocInfo->ContainedTyInfo = ContainedTyInfo;
647647 }
You can’t perform that action at this time.
0 commit comments