Skip to content

Commit

Permalink
[IRBuilder][NFC] Dereference MaybeAlign that's known non-None.
Browse files Browse the repository at this point in the history
  • Loading branch information
efriedma-quic committed Apr 30, 2020
1 parent 3cd6e02 commit c671345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/include/llvm/IR/IRBuilder.h
Expand Up @@ -1709,7 +1709,7 @@ class IRBuilderBase {
const DataLayout &DL = BB->getModule()->getDataLayout();
Align = DL.getABITypeAlign(Val->getType());
}
return Insert(new StoreInst(Val, Ptr, isVolatile, Align));
return Insert(new StoreInst(Val, Ptr, isVolatile, *Align));
}
FenceInst *CreateFence(AtomicOrdering Ordering,
SyncScope::ID SSID = SyncScope::System,
Expand Down

0 comments on commit c671345

Please sign in to comment.