OSDN Git Service
(root)
/
android-x86
/
external-llvm-project.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
515bc8c
)
[Statepoint] Fix bug found by sanitaizer.
author
Denis Antrushin
<dantrushin@gmail.com>
Thu, 16 Jul 2020 19:54:58 +0000
(22:54 +0300)
committer
Denis Antrushin
<dantrushin@gmail.com>
Thu, 16 Jul 2020 20:06:53 +0000
(23:06 +0300)
Statepoint has no static operands, so it cannot be verified
against MCInstrDescr. Revert NumDefs change introduced by
ef658ebd629
.
llvm/lib/CodeGen/MachineVerifier.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/MachineVerifier.cpp
b/llvm/lib/CodeGen/MachineVerifier.cpp
index
63f534f
..
c1a2c4e
100644
(file)
--- a/
llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/
llvm/lib/CodeGen/MachineVerifier.cpp
@@
-1565,9
+1565,6
@@
MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
if (MCID.getOpcode() == TargetOpcode::PATCHPOINT)
NumDefs = (MONum == 0 && MO->isReg()) ? NumDefs : 0;
- if (MCID.getOpcode() == TargetOpcode::STATEPOINT)
- NumDefs = MI->getNumDefs();
-
// The first MCID.NumDefs operands must be explicit register defines
if (MONum < NumDefs) {
const MCOperandInfo &MCOI = MCID.OpInfo[MONum];