Adapt to LLVM3.6 API change