diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-08-11 14:47:12 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-08-11 14:47:12 +0000 |
| commit | e8394df11b662bb485e323a05dd2d0c4f7e82742 (patch) | |
| tree | fb6cea94a9e0cbd8fe54a83e17531af206aae383 /clang/lib/Sema/SemaExpr.cpp | |
| parent | 13e658731346914749b7fb17d12417c04166c6ff (diff) | |
| download | bcm5719-llvm-e8394df11b662bb485e323a05dd2d0c4f7e82742.tar.gz bcm5719-llvm-e8394df11b662bb485e323a05dd2d0c4f7e82742.zip | |
Random temporary string cleanup.
llvm-svn: 110807
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index d4b05389f49..e108ab59cec 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -2436,7 +2436,7 @@ CheckExtVectorComponent(QualType baseType, SourceLocation OpLoc, // We didn't get to the end of the string. This means the component names // didn't come from the same set *or* we encountered an illegal name. Diag(OpLoc, diag::err_ext_vector_component_name_illegal) - << std::string(compStr,compStr+1) << SourceRange(CompLoc); + << llvm::StringRef(compStr, 1) << SourceRange(CompLoc); return QualType(); } |

