[clangd] Fix NDEBUG build problem introduced by rL366698
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Sat, 27 Jul 2019 17:09:15 +0000 (17:09 +0000)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Sat, 27 Jul 2019 17:09:15 +0000 (17:09 +0000)
commitf0f63cab7f5b1a30e4bf327b4b51c945e8d76487
tree1b4487bf45ff2d8234dda509cc666c689b16bf48
parent60c1ee23ffbcf524e344373006816f61120199fc
[clangd] Fix NDEBUG build problem introduced by rL366698

Sprinkled some #ifndef NDEBUG in Selection.cpp to make
it possible to build with NDEBUG defined.

The problem was introduced in rL366698 when using dlog
for some debug printouts. The dlog macro expands to
DEBUG_WITH_TYPE, which isn't using it's arguments in
optimized builds (when NDEBUG is defined).

llvm-svn: 367178
clang-tools-extra/clangd/Selection.cpp