Skip to content

Commit

Permalink
Fix an apparent typo. assert() must not contain side-effects. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
darkbuck committed Oct 14, 2020
1 parent acb7827 commit ae40d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/StackMaps.cpp
Expand Up @@ -384,7 +384,7 @@ void StackMaps::parseStatepointOpers(const MachineInstr &MI,

// Record Deopt Args.
unsigned NumDeoptArgs = Locations.back().Offset;
assert(Locations.back().Type = Location::Constant);
assert(Locations.back().Type == Location::Constant);
assert(NumDeoptArgs == SO.getNumDeoptArgs());

while (NumDeoptArgs--)
Expand Down

0 comments on commit ae40d28

Please sign in to comment.