aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Stmt.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-04-03 05:57:08 +0000
committerAnders Carlsson <andersca@mac.com>2009-04-03 05:57:08 +0000
commitec91dab1977154f13621cfb63184364afee84ea1 (patch)
tree9ae35be270f097d0b39b5e547ab36a3eac737205 /lib/AST/Stmt.cpp
parent23d16b3efb640f0d34d95557c51b82d037d08adc (diff)
Ignore plus operands when looking up the operand number from a named operand. This matches llvm-gcc and fixes PR3908.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68371 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r--lib/AST/Stmt.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp
index 0cf36f98a8..ce55fae87e 100644
--- a/lib/AST/Stmt.cpp
+++ b/lib/AST/Stmt.cpp
@@ -177,9 +177,6 @@ int AsmStmt::getNamedOperand(const std::string &SymbolicName) const {
for (unsigned i = 0, e = getNumOutputs(); i != e; ++i) {
if (getOutputName(i) == SymbolicName)
return i;
-
- // Keep track of the number of '+' operands.
- if (isOutputPlusConstraint(i)) ++NumPlusOperands;
}
for (unsigned i = 0, e = getNumInputs(); i != e; ++i)