[CodeComplete] Fix the crash in code completion on access checking
authorIlya Biryukov <ibiryukov@google.com>
Mon, 30 Jul 2018 15:19:05 +0000 (15:19 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 30 Jul 2018 15:19:05 +0000 (15:19 +0000)
commit55b1b157b67c90b8e1adb70226fb9b39200eaf40
tree0c8470ed05332a4857089f1d8a682d7971a42a7c
parent764b3d8cc59fbe3523c444d011f981aaec689d6d
[CodeComplete] Fix the crash in code completion on access checking

Started crashing in r337453. See the added test case for the crash repro.

The fix reverts part of r337453 that causes the crash and does
not actually break anything when reverted.

llvm-svn: 338255
clang/lib/Sema/SemaCodeComplete.cpp
clang/test/Index/complete-access-checks-crash.cpp [new file with mode: 0644]