Skip to content

Commit cc7aef9

Browse files
authored
[HLSL][NFC] Initialize DiagnoseHLSLAvailability members (#100778)
Improves readability and removes static verifier trigger.
1 parent eb03279 commit cc7aef9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,10 @@ class DiagnoseHLSLAvailability
650650
bool HasMatchingEnvironmentOrNone(const AvailabilityAttr *AA);
651651

652652
public:
653-
DiagnoseHLSLAvailability(Sema &SemaRef) : SemaRef(SemaRef) {}
653+
DiagnoseHLSLAvailability(Sema &SemaRef)
654+
: SemaRef(SemaRef),
655+
CurrentShaderEnvironment(llvm::Triple::UnknownEnvironment),
656+
CurrentShaderStageBit(0), ReportOnlyShaderStageIssues(false) {}
654657

655658
// AST traversal methods
656659
void RunOnTranslationUnit(const TranslationUnitDecl *TU);

0 commit comments

Comments
 (0)