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 | 2085fd6cd22ec5c268175251db10d7c60caf7aaa (patch) | |
tree | 117d3027fce1afe6b0a10f81be576c8119e0faf8 /lib/Sema/SemaExprObjC.cpp | |
parent | c6666f8e9bbb7f31bf2e52f97137e738c4ca01d0 (diff) |
privatize all of the string literal memory allocation/creation
stuff behind a private static function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64898 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprObjC.cpp')
-rw-r--r-- | lib/Sema/SemaExprObjC.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index 6e40b3c4a3..886a3ca1dc 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/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. |