[PATCH] Dereferenceable, dereferenceable_or_null metadata for loads
Sanjoy Das
sanjoy at playingwithpointers.com
Mon May 18 10:46:48 PDT 2015
Minor comment inline for post-commit review.
================
Comment at: lib/Analysis/ValueTracking.cpp:2880
@@ +2879,3 @@
+ DerefBytes = CI->getLimitedValue();
+ }
+ if (!DerefBytes.getBoolValue()) {
----------------
In both the places, instead of doing
```
MDNode *MD = ...
if (MD)
```
you can do
```
if (MDNode *MD = ...)
```
http://reviews.llvm.org/D9365
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list