We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4521dc1 commit 16f8e01Copy full SHA for 16f8e01
clang/lib/Sema/SemaHLSL.cpp
@@ -3150,16 +3150,6 @@ void SemaHLSL::deduceAddressSpace(VarDecl *Decl) {
3150
if (Type->isSamplerT() || Type->isVoidType())
3151
return;
3152
3153
- // Template instantiations can lack definition. In such case,
3154
- // we cannot deduce the AS.
3155
- // FIXME: figure out why RWBuffer<float> yields such declaration.
3156
- if (const RecordType *RT =
3157
- dyn_cast<RecordType>(Type->getUnqualifiedDesugaredType())) {
3158
- CXXRecordDecl *RD = Type->getAsCXXRecordDecl();
3159
- if (RD && !RD->isCompleteDefinition())
3160
- return;
3161
- }
3162
-
3163
// Resource handles.
3164
if (isResourceRecordTypeOrArrayOf(Type->getUnqualifiedDesugaredType()))
3165
0 commit comments