diff options
Diffstat (limited to 'tools/libclang/CIndexer.h')
-rw-r--r-- | tools/libclang/CIndexer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libclang/CIndexer.h b/tools/libclang/CIndexer.h index bf55301..94c27a0 100644 --- a/tools/libclang/CIndexer.h +++ b/tools/libclang/CIndexer.h @@ -85,8 +85,8 @@ public: /// threads when possible. /// /// \return False if a crash was detected. - bool RunSafely(llvm::CrashRecoveryContext &CRC, - void (*Fn)(void*), void *UserData, unsigned Size = 0); + bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn, + unsigned Size = 0); /// \brief Set the thread priority to background. /// FIXME: Move to llvm/Support. |