GlobalISel: make sure debugging variables are appropriately elided in release builds.
authorDavid L. Jones <dlj@google.com>
Tue, 8 Nov 2016 22:03:23 +0000 (22:03 +0000)
committerDavid L. Jones <dlj@google.com>
Tue, 8 Nov 2016 22:03:23 +0000 (22:03 +0000)
commite09ae201f207c17a67d55500f64e63fc084e592f
tree736b0f807374f559756427fa6b8423abd96e5c24
parentb506466a8a9b609aad1c07289ca54d68b58bcfd9
GlobalISel: make sure debugging variables are appropriately elided in release builds.

Summary:
There are two variables here that break. This change constrains both of them to
debug builds (via DEBUG() or #ifndef NDEBUG).

Reviewers: bkramer, t.p.northover

Subscribers: mehdi_amini, vkalintiris

Differential Revision: https://reviews.llvm.org/D26421

llvm-svn: 286300
llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp