diff options
| author | Guy Benyei <guy.benyei@intel.com> | 2013-02-12 21:21:59 +0000 |
|---|---|---|
| committer | Guy Benyei <guy.benyei@intel.com> | 2013-02-12 21:21:59 +0000 |
| commit | 83c74e9fad4442998a780dc7707461713615fd82 (patch) | |
| tree | fea31fcb6ba5dc4d108529fe1707cad4fc7eeb4f /llvm/lib/Linker/LinkModules.cpp | |
| parent | 4e472b63280f208edf086c843725ec5935baa93f (diff) | |
| download | bcm5719-llvm-83c74e9fad4442998a780dc7707461713615fd82.tar.gz bcm5719-llvm-83c74e9fad4442998a780dc7707461713615fd82.zip | |
Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration.
llvm-svn: 175006
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
| -rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index 3b8928a3245..c358a0ad72b 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -606,7 +606,8 @@ void ModuleLinker::computeTypeMapping() { // Check to see if there is a dot in the name followed by a digit. size_t DotPos = ST->getName().rfind('.'); if (DotPos == 0 || DotPos == StringRef::npos || - ST->getName().back() == '.' || !isdigit(ST->getName()[DotPos+1])) + ST->getName().back() == '.' || + !isdigit(static_cast<unsigned char>(ST->getName()[DotPos+1]))) continue; // Check to see if the destination module has a struct with the prefix name. |

