Fix build broken by LLVM commit r199279

Patch by: Udo van den Heuvel

Tom Stellard:
  - Added ifdef and error handling

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@199687 91177308-0d34-0410-b5e6-96231b3b80d8