diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-10 08:33:44 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-10 08:33:44 +0000 |
| commit | f9667229a1e2be39b805651e2d5ee290456fec31 (patch) | |
| tree | 4de45565ae114489df461aa511bc6680706656c1 | |
| parent | fcc77b1c0213ffd444c6dc22cede28c50b55e80e (diff) | |
| download | bcm5719-llvm-f9667229a1e2be39b805651e2d5ee290456fec31.tar.gz bcm5719-llvm-f9667229a1e2be39b805651e2d5ee290456fec31.zip | |
Ignore parentheses when check the type of the expr.
llvm-svn: 86677
| -rw-r--r-- | clang/lib/Analysis/CheckSizeofPointer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CheckSizeofPointer.cpp b/clang/lib/Analysis/CheckSizeofPointer.cpp index 1aab3c973d6..174beefbca4 100644 --- a/clang/lib/Analysis/CheckSizeofPointer.cpp +++ b/clang/lib/Analysis/CheckSizeofPointer.cpp @@ -54,7 +54,7 @@ void WalkAST::VisitSizeOfAlignOfExpr(SizeOfAlignOfExpr *E) { // because people know what they are doing when they intentionally // dereference the pointer. Expr *ArgEx = E->getArgumentExpr(); - if (!isa<DeclRefExpr>(ArgEx)) + if (!isa<DeclRefExpr>(ArgEx->IgnoreParens())) return; SourceRange R = ArgEx->getSourceRange(); |

