diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-25 09:46:27 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-25 09:46:27 +0000 |
commit | 302684c5e2242c350efb3a638cd0ed1de21705e1 (patch) | |
tree | b621082196fda41e70b6f61b4ccead07f590c2d0 /lib/Basic/TargetInfo.cpp | |
parent | f56f1913e91ad32bed52dd3f6afc26735d336584 (diff) |
Stop asserting in TargetInfo::validateInputConstraint
- Sema gives a perfectively nice error message on invalid constraints.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
-rw-r--r-- | lib/Basic/TargetInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp index c1597cdeb1..8a11925e06 100644 --- a/lib/Basic/TargetInfo.cpp +++ b/lib/Basic/TargetInfo.cpp @@ -193,10 +193,10 @@ bool TargetInfo::validateInputConstraint(const char *Name, if (i >= NumOutputs) return false; } else if (!validateAsmConstraint(*Name, info)) { - // FIXME: This assert is in place temporarily - // so we can add more constraints as we hit it. - // Eventually, an unknown constraint should just be treated as 'g'. - assert(0 && "Unknown input constraint type!"); + // FIXME: This error return is in place temporarily so we can + // add more constraints as we hit it. Eventually, an unknown + // constraint should just be treated as 'g'. + return false; } case '%': // commutative // FIXME: Fail if % is used with the last operand. |