Skip to content

Commit 1969f85

Browse files
committed
check for attr
1 parent 2d5fd22 commit 1969f85

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/clang/lib/Sema/SemaHLSLDiagnoseTU.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,9 +737,9 @@ void hlsl::DiagnoseTranslationUnit(clang::Sema *self) {
737737
if (EntrySK == DXIL::ShaderKind::Library) {
738738
for (VarDecl *VD : GlobalsWithInit) {
739739
DXIL::NodeLaunchType NodeLaunchTy = DXIL::NodeLaunchType::Invalid;
740-
HLSLCallDiagnoseVisitor Visitor(self, shaderModel, EntrySK, NodeLaunchTy,
741-
nullptr, DiagnosedCalls,
742-
DeclAvailabilityChecked);
740+
HLSLReachableDiagnoseVisitor Visitor(
741+
self, shaderModel, EntrySK, NodeLaunchTy, nullptr, DiagnosedCalls,
742+
DeclAvailabilityChecked, DiagnosedTypeLocs);
743743
QualType QT = VD->getType();
744744
if (const RecordType *RT = QT->getAs<RecordType>()) {
745745
RecordDecl *RD = RT->getDecl();

0 commit comments

Comments
 (0)