From f1fdf4a80cbca86eadeadc7212701d4231344d01 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sun, 11 Jan 2015 09:13:56 +0000 Subject: CodeGen: Simplify consecutive '%' modifiers LLVM the consecutive '%' modifiers are redundant, skip them. llvm-svn: 225602 --- clang/lib/CodeGen/CGStmt.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/lib') diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index d910f2fb969..bd48227b15c 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -1660,8 +1660,9 @@ SimplifyConstraint(const char *Constraint, const TargetInfo &Target, Constraint++; break; case '&': - Result += '&'; - while (Constraint[1] && Constraint[1] == '&') + case '%': + Result += *Constraint; + while (Constraint[1] && Constraint[1] == *Constraint) Constraint++; break; case ',': -- cgit v1.2.3