diff options
| author | Haojian Wu <hokein@google.com> | 2018-08-01 11:24:50 +0000 |
|---|---|---|
| committer | Haojian Wu <hokein@google.com> | 2018-08-01 11:24:50 +0000 |
| commit | 1ffd6b222aab2ded4450a70d48826ec026afaa44 (patch) | |
| tree | 70c5e4ec62b8fd81bddd49b8b8583e71e400b740 /clang/lib/CodeGen/CGExprAgg.cpp | |
| parent | e447a273bd714c5338fc5c4270b3b657a407064c (diff) | |
| download | bcm5719-llvm-1ffd6b222aab2ded4450a70d48826ec026afaa44.tar.gz bcm5719-llvm-1ffd6b222aab2ded4450a70d48826ec026afaa44.zip | |
[clangd] Make SymbolLocation => bool conversion explicitly.
Summary:
The implicit bool conversion could happen superisingly, e.g. when
checking `if (Loc1 == Loc2)`, the compiler will convert SymbolLocation to
bool before comparing (because we don't define operator `==` for SymbolLocation).
Reviewers: sammccall
Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, cfe-commits
Differential Revision: https://reviews.llvm.org/D49657
llvm-svn: 338517
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions

