Skip to content

Commit a12bcbc

Browse files
committed
Move skipping of implicit initializer of hlsl_constant decls to a different PR.
1 parent c80415a commit a12bcbc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14184,12 +14184,6 @@ void Sema::ActOnUninitializedDecl(Decl *RealDecl) {
1418414184
Var->getType().getAddressSpace() == LangAS::opencl_local)
1418514185
return;
1418614186

14187-
// In HLSL, objects in the hlsl_constat address space are initialized
14188-
// externaly, so don't synthesize an implicit initializer.
14189-
if (getLangOpts().HLSL &&
14190-
Var->getType().getAddressSpace() == LangAS::hlsl_constant)
14191-
return;
14192-
1419314187
// C++03 [dcl.init]p9:
1419414188
// If no initializer is specified for an object, and the
1419514189
// object is of (possibly cv-qualified) non-POD class type (or

0 commit comments

Comments
 (0)