Skip to content

Commit 16f8e01

Browse files
committed
pr-feedback
1 parent 4521dc1 commit 16f8e01

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3150,16 +3150,6 @@ void SemaHLSL::deduceAddressSpace(VarDecl *Decl) {
31503150
if (Type->isSamplerT() || Type->isVoidType())
31513151
return;
31523152

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-
31633153
// Resource handles.
31643154
if (isResourceRecordTypeOrArrayOf(Type->getUnqualifiedDesugaredType()))
31653155
return;

0 commit comments

Comments
 (0)