We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36af934 + 49bb19d commit 78daa41Copy full SHA for 78daa41
lib/SILOptimizer/LoopTransforms/LICM.cpp
@@ -1432,7 +1432,7 @@ hoistLoadsAndStores(AccessPath accessPath, SILLoop *loop) {
1432
return;
1433
1434
LoadInst *initialLoad =
1435
- B.createLoad(preheader->getTerminator()->getLoc(), initialAddr,
+ B.createLoad(RegularLocation::getAutoGeneratedLocation(), initialAddr,
1436
LoadOwnershipQualifier::Unqualified);
1437
LLVM_DEBUG(llvm::dbgs() << "Creating preload " << *initialLoad);
1438
ssaUpdater.addAvailableValue(preheader, initialLoad);
0 commit comments