[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)
Joshua Batista via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 28 22:56:05 PDT 2024
================
@@ -21,6 +21,7 @@
#include "clang/Basic/IdentifierTable.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Sema/Scope.h"
+#include "clang/Sema/Sema.h"
----------------
bob80905 wrote:
Sema.h is needed because it defines `RequireCompleteType`
`RequireCompleteType` is required because if it isn't called, then in SemaHLSL.cpp on line 625 where `isAggregate` is called, an assert will cause a crash in the compiler. Calling the function where it's called prevents this crash, but further investigation is needed because it seems like the function should have been called sometime earlier.
https://github.com/llvm/llvm-project/pull/97103
More information about the cfe-commits
mailing list