Fix segfault when code_llvm or code_native is called on a C function.
Check for specTypes in jl_get_llvmf.
Merge pull request #8239 from danluu/code_native_segfault

Fix segfault when code_llvm or code_native are called on a C function