adding patch for LLVM. Fix for trunk(select)
Merge pull request #720 from ifilippov/err

Adding patch for LLVM. Fix for trunk(select)