X86: Wrap a helper for an assert in #ifndef NDEBUG
authorJustin Bogner <mail@justinbogner.com>
Wed, 24 Feb 2016 07:58:02 +0000 (07:58 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 24 Feb 2016 07:58:02 +0000 (07:58 +0000)
commit38e5217b1e6ce543fcc3c15c1ee463c5e78fa81f
tree992ec2c6c9bc2357437e3508e25dd14c585f9c32
parent28bb3d9046fb93bc062a6d0bc514d757e0e352bd
X86: Wrap a helper for an assert in #ifndef NDEBUG

This function is used in exactly one place, and only in asserts
builds. Move it a few lines up before the use and only define it when
asserts are enabled. Fixes the release build under -Werror.

Also remove the forward declaration and commentary that was basically
identical to the code itself.

llvm-svn: 261722
llvm/lib/Target/X86/X86OptimizeLEAs.cpp