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 | 81128e04e783a48e7a393b6bd3c8892de353002c (patch) | |
| tree | 838e2ddfe2ca1e90d9d6a1f32a40e62d630ae88a /clang/lib | |
| parent | ca8531a2d7ba0634813bb223328cccaa3d07f6ca (diff) | |
| download | bcm5719-llvm-81128e04e783a48e7a393b6bd3c8892de353002c.tar.gz bcm5719-llvm-81128e04e783a48e7a393b6bd3c8892de353002c.zip | |
Stop asserting in TargetInfo::validateInputConstraint
- Sema gives a perfectively nice error message on invalid constraints.
llvm-svn: 55310
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Basic/TargetInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp index c1597cdeb13..8a11925e06b 100644 --- a/clang/lib/Basic/TargetInfo.cpp +++ b/clang/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. |

