diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-26 18:05:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-26 18:05:25 +0000 |
commit | d68876176a0d2c19e3864e7d38f6036c4f72f0a3 (patch) | |
tree | bb3460f556c6d1976932b8c6e0de39db8864eb7b /lib/Basic/TargetInfo.cpp | |
parent | 2819fa85651526d59ade4fdc9da2cadd7b132973 (diff) |
in a tied operand, don't copy over the name or constraint string, just the flags.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
-rw-r--r-- | lib/Basic/TargetInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp index a7241f2864..d1e351077e 100644 --- a/lib/Basic/TargetInfo.cpp +++ b/lib/Basic/TargetInfo.cpp @@ -245,8 +245,7 @@ bool TargetInfo::validateInputConstraint(ConstraintInfo *OutputConstraints, // The constraint should have the same info as the respective // output constraint. - Info = OutputConstraints[i]; - Info.setTiedOperand(i); + Info.setTiedOperand(i, OutputConstraints[i]); } else if (!validateAsmConstraint(Name, Info)) { // FIXME: This error return is in place temporarily so we can // add more constraints as we hit it. Eventually, an unknown |