forked from OSchip/llvm-project
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:
parent
beea351287
commit
dfa25a07d4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue