[PATCH] D12932: [LazyValueInfo] Report nonnull range for nonnull pointers

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 10:00:19 PDT 2015


reames accepted this revision.
reames added a comment.
This revision is now accepted and ready to land.

Nice cleanup.  LGTM w/comment addressed.


================
Comment at: lib/Analysis/LazyValueInfo.cpp:535
@@ +534,3 @@
+  // If this value is a nonnull pointer, record it's range and bailout.
+  if (BBI->getType()->isPointerTy() &&
+      isKnownNonNull(BBI)) {
----------------
Please use a dyn_cast on the type to check the type since you have a cast below.  


Repository:
  rL LLVM

http://reviews.llvm.org/D12932





More information about the llvm-commits mailing list