diff options
author | Anna Zaks <ganna@apple.com> | 2013-04-25 16:26:20 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2013-04-25 16:26:20 +0000 |
commit | a2338bc4c2887937478d302901fb41a53e14e6d6 (patch) | |
tree | 9265a3f5ff01f5f046c02be69c3780f28abab185 | |
parent | 0823c7d83cc625260e6495783bb5905082206fd1 (diff) |
Fix a possible null pointer dereference found by the analyzer.
When computing the other parameters, ‘op’ is checked for being null before it’s dereferenced.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180271 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Expr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 36d70d8b0b..2e66df33ee 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -2644,7 +2644,7 @@ protected: (ty->isInstantiationDependentType() || (op && op->isInstantiationDependent())), (ty->containsUnexpandedParameterPack() || - op->containsUnexpandedParameterPack())), + (op && op->containsUnexpandedParameterPack()))), Op(op) { assert(kind != CK_Invalid && "creating cast with invalid cast kind"); CastExprBits.Kind = kind; |