diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-01-11 09:09:01 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-01-11 09:09:01 +0000 |
commit | 14d4e7bdbf057f6cdcb1dfc8fa704606abf5cf5b (patch) | |
tree | 4db7182e5f156113877ce6415bf2d96364fbc77f /clang/lib | |
parent | 50cb05591dcf2169e0444652f376272150f85669 (diff) | |
download | bcm5719-llvm-14d4e7bdbf057f6cdcb1dfc8fa704606abf5cf5b.tar.gz bcm5719-llvm-14d4e7bdbf057f6cdcb1dfc8fa704606abf5cf5b.zip |
CodeGen: Simplify consecutive '&' modifiers
LLVM the consecutive '&' modifiers are redundant, skip them.
llvm-svn: 225601
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index a003e8ab9e8..d910f2fb969 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -1659,6 +1659,11 @@ SimplifyConstraint(const char *Constraint, const TargetInfo &Target, while (Constraint[1] && Constraint[1] != ',') Constraint++; break; + case '&': + Result += '&'; + while (Constraint[1] && Constraint[1] == '&') + Constraint++; + break; case ',': Result += "|"; break; |