forked from OSchip/llvm-project
Revert r172153, "llvm/lib/MC/MCParser/AsmParser.cpp: [ms-inline-asm] Fix a couple of undefined behaviors. Operand->needAddressOf() is not initialized at !Operand->isReg()."
It has been redundant since r172157. llvm-svn: 172166
This commit is contained in:
parent
3835204ade
commit
2abe564806
|
@ -3934,8 +3934,7 @@ bool AsmParser::ParseMSInlineAsm(void *AsmLoc, std::string &AsmString,
|
||||||
std::string Constraint = "=";
|
std::string Constraint = "=";
|
||||||
++InputIdx;
|
++InputIdx;
|
||||||
OutputDecls.push_back(OpDecl);
|
OutputDecls.push_back(OpDecl);
|
||||||
OutputDeclsAddressOf.push_back(Operand->isReg() &&
|
OutputDeclsAddressOf.push_back(Operand->needAddressOf());
|
||||||
Operand->needAddressOf());
|
|
||||||
Constraint += Operand->getConstraint().str();
|
Constraint += Operand->getConstraint().str();
|
||||||
OutputConstraints.push_back(Constraint);
|
OutputConstraints.push_back(Constraint);
|
||||||
AsmStrRewrites.push_back(AsmRewrite(AOK_Output,
|
AsmStrRewrites.push_back(AsmRewrite(AOK_Output,
|
||||||
|
@ -3943,8 +3942,7 @@ bool AsmParser::ParseMSInlineAsm(void *AsmLoc, std::string &AsmString,
|
||||||
Operand->getNameLen()));
|
Operand->getNameLen()));
|
||||||
} else {
|
} else {
|
||||||
InputDecls.push_back(OpDecl);
|
InputDecls.push_back(OpDecl);
|
||||||
InputDeclsAddressOf.push_back(Operand->isReg() &&
|
InputDeclsAddressOf.push_back(Operand->needAddressOf());
|
||||||
Operand->needAddressOf());
|
|
||||||
InputConstraints.push_back(Operand->getConstraint().str());
|
InputConstraints.push_back(Operand->getConstraint().str());
|
||||||
AsmStrRewrites.push_back(AsmRewrite(AOK_Input,
|
AsmStrRewrites.push_back(AsmRewrite(AOK_Input,
|
||||||
Operand->getStartLoc(),
|
Operand->getStartLoc(),
|
||||||
|
|
Loading…
Reference in New Issue