diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-18 06:40:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-18 06:40:38 +0000 |
commit | f83b5afb7b482c779dc04b1fe3a92ceb6cfa54e9 (patch) | |
tree | 200bd873a2ffd50e225f201cd7e7a234c30a8082 /clang/lib/Sema/SemaExprObjC.cpp | |
parent | b2809a0a1b07fa1ca9dbdab0bba5171adc7db476 (diff) | |
download | bcm5719-llvm-f83b5afb7b482c779dc04b1fe3a92ceb6cfa54e9.tar.gz bcm5719-llvm-f83b5afb7b482c779dc04b1fe3a92ceb6cfa54e9.zip |
privatize all of the string literal memory allocation/creation
stuff behind a private static function.
llvm-svn: 64898
Diffstat (limited to 'clang/lib/Sema/SemaExprObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExprObjC.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp index 6e40b3c4a3e..886a3ca1dce 100644 --- a/clang/lib/Sema/SemaExprObjC.cpp +++ b/clang/lib/Sema/SemaExprObjC.cpp @@ -51,9 +51,9 @@ Sema::ExprResult Sema::ParseObjCStringLiteral(SourceLocation *AtLocs, S->Destroy(Context); } // FIXME: PASS LOCATIONS PROPERLY. - S = new (Context) StringLiteral(Context, strBuf, Length, false, - Context.getPointerType(Context.CharTy), - AtLocs[0]); + S = StringLiteral::Create(Context, strBuf, Length, false, + Context.getPointerType(Context.CharTy), + AtLocs[0]); } // Verify that this composite string is acceptable for ObjC strings. |