fixes llvm 3.6 build due to recent api changes

See: https://github.com/llvm-mirror/llvm/commit/548f2b6e8fc5499fa8c9394fe7d110f50c487802