fixes llvm 3.6 build due to api changes in https://github.com/llvm-mirror/llvm/commit/548f2b6e8fc5499fa8c9394fe7d110f50c487802
Merge pull request #8097 from jakebolewski/jcb/fixllvm36

fixes llvm 3.6 build due to recent api changes