[PATCH] D14350: [FunctionAttrs] Fix an iterator wraparound bug

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 5 17:28:55 PST 2015


reames added inline comments.

================
Comment at: lib/Transforms/IPO/FunctionAttrs.cpp:444
@@ +443,3 @@
+
+      unsigned UseIndex = std::distance(CS.arg_begin(), U);
+
----------------
What prevents the U from being the callee?  


http://reviews.llvm.org/D14350





More information about the llvm-commits mailing list