[llvm] ae40d28 - Fix an apparent typo. `assert()` must not contain side-effects. NFC.
Michael Liao via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 14 08:34:51 PDT 2020
Author: Michael Liao
Date: 2020-10-14T11:33:34-04:00
New Revision: ae40d2858e206eaa07ea5c2a032b3c6c50918d1b
URL: https://github.com/llvm/llvm-project/commit/ae40d2858e206eaa07ea5c2a032b3c6c50918d1b
DIFF: https://github.com/llvm/llvm-project/commit/ae40d2858e206eaa07ea5c2a032b3c6c50918d1b.diff
LOG: Fix an apparent typo. `assert()` must not contain side-effects. NFC.
Added:
Modified:
llvm/lib/CodeGen/StackMaps.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/StackMaps.cpp b/llvm/lib/CodeGen/StackMaps.cpp
index a5bad76ca202..f7fb2e824bb9 100644
--- a/llvm/lib/CodeGen/StackMaps.cpp
+++ b/llvm/lib/CodeGen/StackMaps.cpp
@@ -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--)
More information about the llvm-commits
mailing list