Fix asan build
authorNicholas Ormrod <njormrod@fb.com>
Thu, 28 Apr 2016 17:41:19 +0000 (10:41 -0700)
committerFacebook Github Bot 1 <facebook-github-bot-1-bot@fb.com>
Thu, 28 Apr 2016 17:50:21 +0000 (10:50 -0700)
commit9c29a7590d277b7c811e51f3fd6cf160b60a5479
tree4f2a02332662b4564f320ba8c15e62e585ae2c73
parent22fa757160e1212dcece4e231dac02a218173837
Fix asan build

Summary:
The array-bounds checker in gcc complains that r could be -1 after leaving CHECK_ERR in ASAN mode. Switch to DCHECK to avoid this possibility. The code was not initially compiling; now it does.

Error from gcc:
  array subscript is below array bounds [-Werror=array-bounds]

Reviewed By: yfeldblum

Differential Revision: D3232694

fb-gh-sync-id: 17f579eb152b661a8e5e4ed29ef91eec405fb90a
fbshipit-source-id: 17f579eb152b661a8e5e4ed29ef91eec405fb90a
folly/test/FileLockTest.cpp