File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -793,16 +793,16 @@ void Instruction::setVolatile(bool Volatile) {
793793 IsVolatileInstruction = Volatile;
794794 switch (getOpcode ()) {
795795 case Instruction::AtomicRMW:
796- cast<AtomicRMWInst>(this )->setVolatile (true );
796+ cast<AtomicRMWInst>(this )->setVolatile (Volatile );
797797 break ;
798798 case Instruction::Store:
799- cast<StoreInst>(this )->setVolatile (true );
799+ cast<StoreInst>(this )->setVolatile (Volatile );
800800 break ;
801801 case Instruction::Load:
802- cast<LoadInst>(this )->setVolatile (true );
802+ cast<LoadInst>(this )->setVolatile (Volatile );
803803 break ;
804804 case Instruction::AtomicCmpXchg:
805- cast<AtomicCmpXchgInst>(this )->setVolatile (true );
805+ cast<AtomicCmpXchgInst>(this )->setVolatile (Volatile );
806806 break ;
807807 }
808808}
You can’t perform that action at this time.
0 commit comments