Fixed an API compatibility issue

Now working with llvm-r213171