diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-03-04 09:04:54 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-03-04 09:04:54 +0000 |
commit | 483a3000f543fa082bbb7e34140771a6e4c36231 (patch) | |
tree | 589088f4a0f17f5c0d71919b400ef0017cab4b75 /llvm/utils | |
parent | 54a7ca3fcbb1e581bc168540a7bb1a6ffd28c9b7 (diff) | |
download | bcm5719-llvm-483a3000f543fa082bbb7e34140771a6e4c36231.tar.gz bcm5719-llvm-483a3000f543fa082bbb7e34140771a6e4c36231.zip |
[Tablegen] Use correct result number variables with the pattern nodes they go with when handling SDTCisSameAs. No functional change as they are always both 0 unless you try to define a multi result type profile that uses SDTCisSame on one of the other results.
llvm-svn: 231226
Diffstat (limited to 'llvm/utils')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index 20bf29eb859..0853d05d2b5 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -901,8 +901,8 @@ bool SDTypeConstraint::ApplyTypeConstraint(TreePatternNode *N, unsigned OResNo = 0; TreePatternNode *OtherNode = getOperandNum(x.SDTCisSameAs_Info.OtherOperandNum, N, NodeInfo, OResNo); - return NodeToApply->UpdateNodeType(OResNo, OtherNode->getExtType(ResNo),TP)| - OtherNode->UpdateNodeType(ResNo,NodeToApply->getExtType(OResNo),TP); + return NodeToApply->UpdateNodeType(ResNo, OtherNode->getExtType(OResNo),TP)| + OtherNode->UpdateNodeType(OResNo,NodeToApply->getExtType(ResNo),TP); } case SDTCisVTSmallerThanOp: { // The NodeToApply must be a leaf node that is a VT. OtherOperandNum must |