Skip to content

Commit 32c4fa5

Browse files
committed
fix bug due to parameter being shadowed in constructor
1 parent c2ed30c commit 32c4fa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5589,11 +5589,11 @@ class ConstructCountAttributedType :
55895589

55905590
public:
55915591
explicit ConstructCountAttributedType(Sema &S, unsigned Level,
5592-
const StringRef DiagName, Expr *ArgExpr,
5592+
const StringRef DiagName, Expr *ArgE,
55935593
SourceLocation Loc, bool CountInBytes,
55945594
bool OrNull, bool AllowRedecl,
55955595
bool ScopeCheck = false)
5596-
: ConstructDynamicBoundType(S, Level, DiagName, ArgExpr, Loc, ScopeCheck,
5596+
: ConstructDynamicBoundType(S, Level, DiagName, ArgE, Loc, ScopeCheck,
55975597
AllowRedecl),
55985598
CountInBytes(CountInBytes), OrNull(OrNull) {
55995599
if (!ArgExpr->getType()->isIntegralOrEnumerationType()) {

0 commit comments

Comments
 (0)