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.

llvm-svn: 180271
This commit is contained in:
Anna Zaks 2013-04-25 16:26:20 +00:00
parent beea351287
commit dfa25a07d4
1 changed files with 1 additions and 1 deletions

View File

@ -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;