summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2016-09-30 15:29:43 +0000
committerMichael Kruse <llvm@meinersbur.de>2016-09-30 15:29:43 +0000
commit32312d0294c57a181ed7ba08431a644f11e1be6d (patch)
treee7f6f2df18817364858fc2a64de734e211092a29 /lldb/packages/Python/lldbsuite/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py
parent7808833e28be784dfad2f66ed0bc3cdc05e30db2 (diff)
downloadbcm5719-llvm-32312d0294c57a181ed7ba08431a644f11e1be6d.tar.gz
bcm5719-llvm-32312d0294c57a181ed7ba08431a644f11e1be6d.zip
[Support] Call isl_*_free() only on non-null pointers. NFC.
Add a non-NULL check before calling the free function into functions that are supposed to be inlined. First, this is a form of partial inlining of the free function, namely the nullptr test that free has to do. Secondly, and more importantly, it allows the compiler to remove the call to isl_*_free() when it knows that the object is nullptr, for instance because the last call is a take(). "Consuming" the last use of an ISL object using take() (instead of copy()) is a common pattern. llvm-svn: 282864
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud