Skip to content

Commit

Permalink
[IR] Temporarily reintroduce StoreInst::setAlignment(MaybeAlign)
Browse files Browse the repository at this point in the history
Change-Id: Idf4b5015ad94049017e9136b50ccdff77ace9a50
  • Loading branch information
jayfoad committed May 18, 2020
1 parent 3e876bb commit 173ac07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/include/llvm/IR/Instructions.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ class StoreInst : public Instruction {

void setAlignment(Align Alignment);

void setAlignment(MaybeAlign Alignment) {
setAlignment(Alignment.getValue());
}

/// Returns the ordering constraint of this store instruction.
AtomicOrdering getOrdering() const {
return AtomicOrdering((getSubclassDataFromInstruction() >> 7) & 7);
Expand Down

0 comments on commit 173ac07

Please sign in to comment.