diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-02-26 10:45:29 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-02-26 10:45:29 +0000 |
commit | e65d2afdb10a7d07c1cad45a576dfbdda5afa461 (patch) | |
tree | 49704518c905414e20b5ecbef92f456385d96bd8 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp | |
parent | 69a10f4112b6b56910bd426e35566d7c4f24abb7 (diff) | |
download | bcm5719-llvm-e65d2afdb10a7d07c1cad45a576dfbdda5afa461.tar.gz bcm5719-llvm-e65d2afdb10a7d07c1cad45a576dfbdda5afa461.zip |
De-tabify.
llvm-svn: 47595
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index 0faaa7284ac..25a5c56d767 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -703,18 +703,18 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) { if (Size < 32) { int Val = (II->getValue() << (32-Size)) >> (32-Size); if (Val != II->getValue()) { - // If sign-extended doesn't fit, does it fit as unsigned? - unsigned ValueMask = unsigned(MVT::getIntVTBitMask(VT)); - unsigned UnsignedVal = unsigned(II->getValue()); - - if ((ValueMask & UnsignedVal) != UnsignedVal) { - TP.error("Integer value '" + itostr(II->getValue())+ - "' is out of range for type '" + - getEnumName(getTypeNum(0)) + "'!"); - } - } - } - } + // If sign-extended doesn't fit, does it fit as unsigned? + unsigned ValueMask = unsigned(MVT::getIntVTBitMask(VT)); + unsigned UnsignedVal = unsigned(II->getValue()); + + if ((ValueMask & UnsignedVal) != UnsignedVal) { + TP.error("Integer value '" + itostr(II->getValue())+ + "' is out of range for type '" + + getEnumName(getTypeNum(0)) + "'!"); + } + } + } + } } return MadeChange; |