diff options
author | Serguei Katkov <serguei.katkov@azul.com> | 2017-04-21 06:14:38 +0000 |
---|---|---|
committer | Serguei Katkov <serguei.katkov@azul.com> | 2017-04-21 06:14:38 +0000 |
commit | c9a752c5b720ac82aebff830b78cc8257f051491 (patch) | |
tree | fbad116561c86869fe1d8484d0ae987589187b79 /llvm/lib/IR/AsmWriter.cpp | |
parent | 6e5ca5be537b1812ffc000b44deb91dd260e40b5 (diff) | |
download | bcm5719-llvm-c9a752c5b720ac82aebff830b78cc8257f051491.tar.gz bcm5719-llvm-c9a752c5b720ac82aebff830b78cc8257f051491.zip |
[AsmWriter] Eliminate warning. NFC
This patch eliminates the following warning
lib/IR/AsmWriter.cpp:1128:57: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
(StrVal[1] >= '0' && StrVal[1] <= '9')) &&
Reviewers: timshen, rnk, davide
Reviewed By: davide
Subscribers: davide, llvm-commits
Differential Revision: https://reviews.llvm.org/D32337
llvm-svn: 300950
Diffstat (limited to 'llvm/lib/IR/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 27f6e366876..b7de07170de 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -1123,10 +1123,10 @@ static void WriteConstantInternal(raw_ostream &Out, const Constant *CV, // "Inf" or NaN, that atof will accept, but the lexer will not. Check // that the string matches the "[-+]?[0-9]" regex. // - assert((StrVal[0] >= '0' && StrVal[0] <= '9') || - ((StrVal[0] == '-' || StrVal[0] == '+') && - (StrVal[1] >= '0' && StrVal[1] <= '9')) && - "[-+]?[0-9] regex does not match!"); + assert(((StrVal[0] >= '0' && StrVal[0] <= '9') || + ((StrVal[0] == '-' || StrVal[0] == '+') && + (StrVal[1] >= '0' && StrVal[1] <= '9'))) && + "[-+]?[0-9] regex does not match!"); // Reparse stringized version! if (APFloat(APFloat::IEEEdouble(), StrVal).convertToDouble() == Val) { Out << StrVal; |