diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-01-07 06:52:12 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-01-07 06:52:12 +0000 |
commit | acafded69c1d1ec0cfd71b0351d6428a609624a5 (patch) | |
tree | 63a9dba5ad510e635b0fa4d22a21de2b315e8ea7 | |
parent | d46fd0869054228feea2148478610932cbfe0c8f (diff) | |
download | bcm5719-llvm-acafded69c1d1ec0cfd71b0351d6428a609624a5.tar.gz bcm5719-llvm-acafded69c1d1ec0cfd71b0351d6428a609624a5.zip |
Fix a -Wparentheses warning from GCC that caught a badly formed assert.
I have no idea why Clang's warning doesn't fire here, looks like a Clang
bug. I'll investigate that separately.
llvm-svn: 198677
-rw-r--r-- | clang/lib/CodeGen/CodeGenPGO.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenPGO.h b/clang/lib/CodeGen/CodeGenPGO.h index 43dee8689d4..0a0699067b1 100644 --- a/clang/lib/CodeGen/CodeGenPGO.h +++ b/clang/lib/CodeGen/CodeGenPGO.h @@ -149,7 +149,7 @@ public: /// within the region. The adjusted count, then, is the value of the counter /// at the end of the region. uint64_t getAdjustedCount() const { - assert(Adjust > 0 || (uint64_t)(-Adjust) <= Count && "Negative count"); + assert((Adjust > 0 || (uint64_t)(-Adjust) <= Count) && "Negative count"); return Count + Adjust; } /// Get the value of the counter in this region's parent, ie, the region that |