Skip to content

Commit 7bd21a6

Browse files
committed
address pr comment, use a more appropriate name
1 parent b4415b2 commit 7bd21a6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clang/lib/Parse/ParseStmt.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,21 @@ Parser::ParseStatementOrDeclaration(StmtVector &Stmts,
114114
// here because we don't want to allow arbitrary orderings.
115115
ParsedAttributes CXX11Attrs(AttrFactory);
116116
MaybeParseCXX11Attributes(CXX11Attrs, /*MightBeObjCMessageSend*/ true);
117-
ParsedAttributes DeclSpecAttrs(AttrFactory);
117+
ParsedAttributes GNUOrMSAttrs(AttrFactory);
118118
if (getLangOpts().OpenCL)
119-
MaybeParseGNUAttributes(DeclSpecAttrs);
119+
MaybeParseGNUAttributes(GNUOrMSAttrs);
120120

121121
if (getLangOpts().HLSL)
122-
MaybeParseMicrosoftAttributes(DeclSpecAttrs);
122+
MaybeParseMicrosoftAttributes(GNUOrMSAttrs);
123123

124124
StmtResult Res = ParseStatementOrDeclarationAfterAttributes(
125-
Stmts, StmtCtx, TrailingElseLoc, CXX11Attrs, DeclSpecAttrs);
125+
Stmts, StmtCtx, TrailingElseLoc, CXX11Attrs, GNUOrMSAttrs);
126126
MaybeDestroyTemplateIds();
127127

128128
// Attributes that are left should all go on the statement, so concatenate the
129129
// two lists.
130130
ParsedAttributes Attrs(AttrFactory);
131-
takeAndConcatenateAttrs(CXX11Attrs, DeclSpecAttrs, Attrs);
131+
takeAndConcatenateAttrs(CXX11Attrs, GNUOrMSAttrs, Attrs);
132132

133133
assert((Attrs.empty() || Res.isInvalid() || Res.isUsable()) &&
134134
"attributes on empty statement");

clang/test/CodeGenHLSL/loops/unroll.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
2-
// RUN: dxil-pc-shadermodel6.3-library %s -emit-llvm -o - | FileCheck %s
2+
// RUN: dxil-pc-shadermodel6.3-library -O3 %s -emit-llvm -o - | FileCheck %s
33

44
/*** for ***/
55
void for_count()

0 commit comments

Comments
 (0)