aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-10 06:42:37 +0000
committerChris Lattner <sabre@nondot.org>2009-03-10 06:42:37 +0000
commit88beebe6ecab1810c3f62f0b5f8be796855861cc (patch)
tree4f451348047e7fcd8fc38b99acb9041a734995b7 /lib/CodeGen
parent02af974dca0f855dc36d8a8c26bb87f373310815 (diff)
Fix PR3682 by just disabling a broken assertion. This check should be
done in sema, and is reflected by the existing PR3258. In the meantime, fix PR3682 by disabling a bogus assertion (which doesn't account for + operands). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CGStmt.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp
index 1aa62e7e03..1ada5ba419 100644
--- a/lib/CodeGen/CGStmt.cpp
+++ b/lib/CodeGen/CGStmt.cpp
@@ -707,8 +707,6 @@ static std::string ConvertAsmString(const AsmStmt& S, bool &Failed) {
std::string Result;
- unsigned NumOperands = S.getNumOutputs() + S.getNumInputs();
-
while (1) {
// Done with the string?
if (StrStart == StrEnd)
@@ -754,7 +752,8 @@ static std::string ConvertAsmString(const AsmStmt& S, bool &Failed) {
StrStart = End;
// FIXME: This should be caught during Sema.
- assert(N < NumOperands && "Operand number out of range!");
+ //unsigned NumOperands = S.getNumOutputs() + S.getNumInputs();
+ //assert(N < NumOperands && "Operand number out of range!");
if (Modifier == '\0')
Result += '$' + llvm::utostr(N);