pull operands names "[foo]" into ConstraintInfo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70136 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp
index ed5692c..13d24c3 100644
--- a/lib/Sema/SemaStmt.cpp
+++ b/lib/Sema/SemaStmt.cpp
@@ -923,7 +923,8 @@
<< Literal->getSourceRange());
TargetInfo::ConstraintInfo Info(Literal->getStrData(),
- Literal->getByteLength());
+ Literal->getByteLength(),
+ Names[i]);
if (!Context.Target.validateOutputConstraint(Info))
return StmtError(Diag(Literal->getLocStart(),
diag::err_asm_invalid_output_constraint)
@@ -948,11 +949,10 @@
<< Literal->getSourceRange());
TargetInfo::ConstraintInfo Info(Literal->getStrData(),
- Literal->getByteLength());
- if (!Context.Target.validateInputConstraint(&Names[0],
- &Names[0] + NumOutputs,
- &OutputConstraintInfos[0],
- Info)) {
+ Literal->getByteLength(),
+ Names[i]);
+ if (!Context.Target.validateInputConstraint(&OutputConstraintInfos[0],
+ NumOutputs, Info)) {
return StmtError(Diag(Literal->getLocStart(),
diag::err_asm_invalid_input_constraint)
<< Info.getConstraintStr());