[PATCH] D16275: [opaque pointer types] [NFC] GEP: replace get(Pointer)ElementType uses with get{Source, Result}ElementType.

Manuel Jacob via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 19 09:19:39 PST 2016


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

LGTM.


================
Comment at: lib/Analysis/ValueTracking.cpp:3255
@@ -3255,2 +3254,3 @@
   if (const GEPOperator *GEP = dyn_cast<GEPOperator>(V)) {
     Type *VTy = GEP->getType();
+    Type *Ty = GEP->getResultElementType();
----------------
I think this variable should be inlined to its only user.


http://reviews.llvm.org/D16275





More information about the llvm-commits mailing list