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 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp | |
parent | e447a273bd714c5338fc5c4270b3b657a407064c (diff) | |
download | llvm-1ffd6b222aab2ded4450a70d48826ec026afaa44.zip llvm-1ffd6b222aab2ded4450a70d48826ec026afaa44.tar.gz llvm-1ffd6b222aab2ded4450a70d48826ec026afaa44.tar.bz2 |
[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 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
0 files changed, 0 insertions, 0 deletions