SelectionDAG: Remove #if NDEBUG from check for a post-isel hook
authorTom Stellard <thomas.stellard@amd.com>
Thu, 25 Sep 2014 18:59:22 +0000 (18:59 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 25 Sep 2014 18:59:22 +0000 (18:59 +0000)
commitbdaf05654547aee357cdd5e759ed3268c472f73e
tree01dcdf2b674bc26b8422697e6b505564195ec5bc
parent29d48e6a49978158e2ff49aed566b80910861eef
SelectionDAG: Remove #if NDEBUG from check for a post-isel hook

The InstrEmitter will skip the check of MI.hasPostISelHook()
before calling AdjustInstrPostInstrSelection() when NDEBUG
is not defined.

This was added in r140228, and I'm not sure if it is intentional or not,
but it is a likely source for bugs, because it means with
Release+Asserts builds you can forget to set the hasPostISelHook
flag on TableGen definitions and AdjustInstrPostInstrSelection() will
still be called.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218458 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/InstrEmitter.cpp