Workaround PR5482, because all the gcc versions that I had were miscompiling StringRef:
authorTorok Edwin <edwintorok@gmail.com>
Thu, 19 Nov 2009 15:39:50 +0000 (15:39 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Thu, 19 Nov 2009 15:39:50 +0000 (15:39 +0000)
commit2fe05d80d396b6ca0bdc66ec17732b8c514d575e
tree046a4741adde5c8b8a79a98bdda188d4dabb63b5
parentac07b3df3e1580b9689d59778cea95afbe75cf65
Workaround PR5482, because all the gcc versions that I had were miscompiling StringRef:
4.2.4, 4.3.4, 4.4.2.
The workaround is to use a local min/max implementation that takes an integer
param, and not a reference to integer param (like std::min does).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89352 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/StringRef.h