diff options
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index c70d05e55b8..7862c57c2d4 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -167,7 +167,7 @@ public: bool VisitParenExpr(ParenExpr *E) { return Visit(E->getSubExpr()); } bool VisitDeclRefExpr(DeclRefExpr *E) { - if (E->getType().isVolatileQualified()) + if (Info.Ctx.getCanonicalType(E->getType()).isVolatileQualified()) return true; return false; } @@ -197,7 +197,7 @@ public: bool VisitUnaryPreDec(UnaryOperator *E) { return true; } bool VisitUnaryPostDec(UnaryOperator *E) { return true; } bool VisitUnaryDeref(UnaryOperator *E) { - if (E->getType().isVolatileQualified()) + if (Info.Ctx.getCanonicalType(E->getType()).isVolatileQualified()) return true; return Visit(E->getSubExpr()); } |