diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2013-09-17 23:32:51 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-09-17 23:32:51 +0000 |
| commit | 6e1798e36aba89cd56c4bbbd1ae3e3fd83ea9bc8 (patch) | |
| tree | e50cda32cf3ff990a749cf94b16f5c7b7f45a9f8 /clang/lib | |
| parent | cfe210997879cb7bd3b9835ea4931c6267286349 (diff) | |
| download | bcm5719-llvm-6e1798e36aba89cd56c4bbbd1ae3e3fd83ea9bc8.tar.gz bcm5719-llvm-6e1798e36aba89cd56c4bbbd1ae3e3fd83ea9bc8.zip | |
ObjectiveC migrator. infer NS_OPTIONS correctly in the
presense of parenthesized enumerator initializers.
llvm-svn: 190901
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/ARCMigrate/ObjCMT.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/ARCMigrate/ObjCMT.cpp b/clang/lib/ARCMigrate/ObjCMT.cpp index c15b4107444..5d36fa7b8ab 100644 --- a/clang/lib/ARCMigrate/ObjCMT.cpp +++ b/clang/lib/ARCMigrate/ObjCMT.cpp @@ -508,7 +508,7 @@ static bool UseNSOptionsMacro(Preprocessor &PP, ASTContext &Ctx, PowerOfTwo = false; continue; } - InitExpr = InitExpr->IgnoreImpCasts(); + InitExpr = InitExpr->IgnoreParenCasts(); if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(InitExpr)) if (BO->isShiftOp() || BO->isBitwiseOp()) return true; |

