Skip to content

Commit 8bd9dc3

Browse files
remove IsNamespace
1 parent 13cbe6f commit 8bd9dc3

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

clang/include/clang/AST/ExprCXX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5503,7 +5503,7 @@ class CXXReflectExpr : public Expr {
55035503
SourceRange OperandRange;
55045504

55055505
CXXReflectExpr(const ASTContext &C, QualType T, QualType Ty);
5506-
CXXReflectExpr(const ASTContext &C, QualType T, Decl *Arg, bool IsNamespace);
5506+
CXXReflectExpr(const ASTContext &C, QualType T, Decl *Arg);
55075507
CXXReflectExpr(EmptyShell Empty);
55085508

55095509
public:

clang/lib/AST/ExprCXX.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,8 +1942,7 @@ TypeTraitExpr *TypeTraitExpr::CreateDeserialized(const ASTContext &C,
19421942
CXXReflectExpr::CXXReflectExpr(const ASTContext &C, QualType T, QualType Ty)
19431943
: Expr(CXXReflectExprClass, T, VK_PRValue, OK_Ordinary) {}
19441944

1945-
CXXReflectExpr::CXXReflectExpr(const ASTContext &C, QualType T, Decl *Arg,
1946-
bool IsNamespace)
1945+
CXXReflectExpr::CXXReflectExpr(const ASTContext &C, QualType T, Decl *Arg)
19471946
: Expr(CXXReflectExprClass, T, VK_PRValue, OK_Ordinary) {}
19481947

19491948
CXXReflectExpr::CXXReflectExpr(EmptyShell Empty)
@@ -1963,9 +1962,7 @@ CXXReflectExpr *CXXReflectExpr::Create(ASTContext &C,
19631962
SourceLocation OperatorLoc,
19641963
SourceLocation OperandLoc,
19651964
Decl *Operand) {
1966-
bool IsNamespace = isa<TranslationUnitDecl>(Operand);
1967-
1968-
CXXReflectExpr *E = new (C) CXXReflectExpr(C, C.VoidTy, Operand, IsNamespace);
1965+
CXXReflectExpr *E = new (C) CXXReflectExpr(C, C.VoidTy, Operand);
19691966

19701967
E->setOperatorLoc(OperatorLoc);
19711968
E->setOperandRange(OperandLoc);

0 commit comments

Comments
 (0)