efriedma added a comment.

Looks okay, but I haven't been reviewing this series of patches closely, so I 
could be missing something.



================
Comment at: lib/CodeGen/CGExprScalar.cpp:3974
     ValidGEP = Builder.CreateAnd(PosOrZeroValid, NoOffsetOverflow);
+  } else if (!SignedIndices && IsSubtraction) {
+    auto *NegOrZeroValid = Builder.CreateICmpULE(ComputedGEP, IntPtr);
----------------
Please make this an "else" rather than an "else if" (you can assert the inside 
the else body if it's helpful).


https://reviews.llvm.org/D34121



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to