]> granicus.if.org Git - clang/commit
ToolChains: Minor touchup to use correct type, avoid truncation.
authorWill Dietz <wdietz2@illinois.edu>
Thu, 10 Jan 2013 22:20:02 +0000 (22:20 +0000)
committerWill Dietz <wdietz2@illinois.edu>
Thu, 10 Jan 2013 22:20:02 +0000 (22:20 +0000)
commitca1ad5018da214b9ff584f57288258424eb76089
tree2f272f9f38658de0d8becf8de37d58f6071fee44
parentb0ed986e648153c7b8dac4a228f7174ca49a6af3
ToolChains: Minor touchup to use correct type, avoid truncation.

Truncation happens regularly when find_first_not_of returns npos,
strings long enough to trigger bug here are implausible.

No functionality change intended (ignoring absurd string lengths).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172127 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains.cpp