support LLVM trunk
Merge pull request #762 from ifilippov/max_min

Support LLVM trunk