Skip to content

Commit f9b2497

Browse files
committed
[VPlan] Use const for VPBasicBlock* in key in VPBB2IRBB (NFC).
This allows queries in places where only a const pointer to VPBasiBlocks is available.
1 parent fda7373 commit f9b2497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanHelpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ struct VPTransformState {
317317

318318
/// A mapping of each VPBasicBlock to the corresponding BasicBlock. In case
319319
/// of replication, maps the BasicBlock of the last replica created.
320-
SmallDenseMap<VPBasicBlock *, BasicBlock *> VPBB2IRBB;
320+
SmallDenseMap<const VPBasicBlock *, BasicBlock *> VPBB2IRBB;
321321

322322
/// Updater for the DominatorTree.
323323
DomTreeUpdater DTU;

0 commit comments

Comments
 (0)