File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ Pointer::~Pointer() {
57
57
if (isIntegralPointer ())
58
58
return ;
59
59
60
- if (PointeeStorage.BS .Pointee ) {
61
- PointeeStorage. BS . Pointee ->removePointer (this );
62
- PointeeStorage. BS . Pointee ->cleanup ();
60
+ if (Block *Pointee = PointeeStorage.BS .Pointee ) {
61
+ Pointee->removePointer (this );
62
+ Pointee->cleanup ();
63
63
}
64
64
}
65
65
@@ -188,6 +188,7 @@ APValue Pointer::toAPValue() const {
188
188
void Pointer::print (llvm::raw_ostream &OS) const {
189
189
OS << PointeeStorage.BS .Pointee << " (" ;
190
190
if (isBlockPointer ()) {
191
+ const Block *B = PointeeStorage.BS .Pointee ;
191
192
OS << " Block) {" ;
192
193
193
194
if (isRoot ())
@@ -200,8 +201,8 @@ void Pointer::print(llvm::raw_ostream &OS) const {
200
201
else
201
202
OS << Offset << " , " ;
202
203
203
- if (PointeeStorage. BS . Pointee )
204
- OS << PointeeStorage. BS . Pointee ->getSize ();
204
+ if (B )
205
+ OS << B ->getSize ();
205
206
else
206
207
OS << " nullptr" ;
207
208
} else {
You can’t perform that action at this time.
0 commit comments