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 409e2b7 + 78daa41 commit e545ba0Copy full SHA for e545ba0
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