[llvm] r261508 - CodeGen: Explicitly convert from iterator to pointer, NFC

Duncan P. N. Exon Smith via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 21 18:53:42 PST 2016


Author: dexonsmith
Date: Sun Feb 21 20:53:42 2016
New Revision: 261508

URL: http://llvm.org/viewvc/llvm-project?rev=261508&view=rev
Log:
CodeGen: Explicitly convert from iterator to pointer, NFC

Modified:
    llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp

Modified: llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp?rev=261508&r1=261507&r2=261508&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp (original)
+++ llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp Sun Feb 21 20:53:42 2016
@@ -278,7 +278,7 @@ bool SSAIfConv::findInsertionPoint() {
   while (I != B) {
     --I;
     // Some of the conditional code depends in I.
-    if (InsertAfter.count(I)) {
+    if (InsertAfter.count(&*I)) {
       DEBUG(dbgs() << "Can't insert code after " << *I);
       return false;
     }




More information about the llvm-commits mailing list