typo + indentation [NFC]

llvm-svn: 280127
This commit is contained in:
Etienne Bergeron 2016-08-30 18:38:25 +00:00
parent fc6e880d6d
commit 982a3bcc48
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ static bool readFullStringValue(HKEY hkey, const char *valueName,
std::wstring WideValue(reinterpret_cast<const wchar_t *>(buffer.data()),
valueSize / sizeof(wchar_t));
if (valueSize && WideValue.back() == L'\0') {
WideValue.pop_back();
WideValue.pop_back();
}
// The destination buffer must be empty as an invariant of the conversion
// function; but this function is sometimes called in a loop that passes in

View File

@ -190,7 +190,7 @@ protected:
/// \brief Print information about the detected CUDA installation.
void print(raw_ostream &OS) const;
/// \brief Get the deteced Cuda install's version.
/// \brief Get the detected Cuda install's version.
CudaVersion version() const { return Version; }
/// \brief Get the detected Cuda installation path.
StringRef getInstallPath() const { return InstallPath; }