[llvm] [SeparateConstOffsetFromGEP] Support GEP reordering for different types (PR #90802)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue May 7 19:09:27 PDT 2024


================
@@ -1018,13 +1011,15 @@ bool SeparateConstOffsetFromGEP::reorderGEP(GetElementPtrInst *GEP,
     }
   }
 
+  IRBuilder<> Builder(GEP);
+  Builder.SetCurrentDebugLocation(GEP->getDebugLoc());
----------------
nikic wrote:

This SetCurrentDebugLocation() call shouldn't be needed (happens automatically).

https://github.com/llvm/llvm-project/pull/90802


More information about the llvm-commits mailing list