diff --git a/clang/lib/AST/ByteCode/Pointer.cpp b/clang/lib/AST/ByteCode/Pointer.cpp index 54484853fcdae..01e642310aad3 100644 --- a/clang/lib/AST/ByteCode/Pointer.cpp +++ b/clang/lib/AST/ByteCode/Pointer.cpp @@ -476,10 +476,10 @@ bool Pointer::pointsToLiteral() const { if (isZero() || !isBlockPointer()) return false; - const Expr *E = block()->getDescriptor()->asExpr(); if (block()->isDynamic()) return false; + const Expr *E = block()->getDescriptor()->asExpr(); return E && !isa(E); }