diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-11 02:50:09 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-11 02:50:09 +0000 |
commit | 2abe564806e09c05995b448d17c4eae59434a330 (patch) | |
tree | 26c62da689185f7acbbed95cff0b785612edeb48 /llvm/lib | |
parent | 3835204adec3a030fae649c7833bb3f7700d925a (diff) | |
download | bcm5719-llvm-2abe564806e09c05995b448d17c4eae59434a330.tar.gz bcm5719-llvm-2abe564806e09c05995b448d17c4eae59434a330.zip |
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
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index 00c16e12749..ecf35fff661 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -3934,8 +3934,7 @@ bool AsmParser::ParseMSInlineAsm(void *AsmLoc, std::string &AsmString, std::string Constraint = "="; ++InputIdx; OutputDecls.push_back(OpDecl); - OutputDeclsAddressOf.push_back(Operand->isReg() && - Operand->needAddressOf()); + OutputDeclsAddressOf.push_back(Operand->needAddressOf()); Constraint += Operand->getConstraint().str(); OutputConstraints.push_back(Constraint); AsmStrRewrites.push_back(AsmRewrite(AOK_Output, @@ -3943,8 +3942,7 @@ bool AsmParser::ParseMSInlineAsm(void *AsmLoc, std::string &AsmString, Operand->getNameLen())); } else { InputDecls.push_back(OpDecl); - InputDeclsAddressOf.push_back(Operand->isReg() && - Operand->needAddressOf()); + InputDeclsAddressOf.push_back(Operand->needAddressOf()); InputConstraints.push_back(Operand->getConstraint().str()); AsmStrRewrites.push_back(AsmRewrite(AOK_Input, Operand->getStartLoc(), |