fix LLVM 3.5 regression introduced by 0d168ed