Skip to content

Commit ae40d28

Browse files
committed
Fix an apparent typo. assert() must not contain side-effects. NFC.
1 parent acb7827 commit ae40d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/StackMaps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ void StackMaps::parseStatepointOpers(const MachineInstr &MI,
384384

385385
// Record Deopt Args.
386386
unsigned NumDeoptArgs = Locations.back().Offset;
387-
assert(Locations.back().Type = Location::Constant);
387+
assert(Locations.back().Type == Location::Constant);
388388
assert(NumDeoptArgs == SO.getNumDeoptArgs());
389389

390390
while (NumDeoptArgs--)

0 commit comments

Comments
 (0)