File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -3516,8 +3516,7 @@ LValue CodeGenFunction::EmitPredefinedLValue(const PredefinedExpr *E) {
35163516 auto C = CGM.GetAddrOfConstantCString (Name, GVName);
35173517 return MakeAddrLValue (C, E->getType (), AlignmentSource::Decl);
35183518 } else {
3519- auto C =
3520- CGM.GetAddrOfConstantCString (std::string (FnName), GVName);
3519+ auto C = CGM.GetAddrOfConstantCString (std::string (FnName), GVName);
35213520 return MakeAddrLValue (C, E->getType (), AlignmentSource::Decl);
35223521 }
35233522 }
Original file line number Diff line number Diff line change @@ -6926,8 +6926,8 @@ CodeGenModule::GetAddrOfConstantStringFromObjCEncode(const ObjCEncodeExpr *E) {
69266926// / GetAddrOfConstantCString - Returns a pointer to a character array containing
69276927// / the literal and a terminating '\0' character.
69286928// / The result has pointer to array type.
6929- ConstantAddress CodeGenModule::GetAddrOfConstantCString (
6930- const std::string &Str, StringRef GlobalName) {
6929+ ConstantAddress CodeGenModule::GetAddrOfConstantCString (const std::string &Str,
6930+ StringRef GlobalName) {
69316931 StringRef StrWithNull (Str.c_str (), Str.size () + 1 );
69326932 CharUnits Alignment = getContext ().getAlignOfGlobalVarInChars (
69336933 getContext ().CharTy , /* VD=*/ nullptr );
Original file line number Diff line number Diff line change @@ -1186,9 +1186,8 @@ class CodeGenModule : public CodeGenTypeCache {
11861186 // /
11871187 // / \param GlobalName If provided, the name to use for the global (if one is
11881188 // / created).
1189- ConstantAddress
1190- GetAddrOfConstantCString (const std::string &Str,
1191- StringRef GlobalName = " .str" );
1189+ ConstantAddress GetAddrOfConstantCString (const std::string &Str,
1190+ StringRef GlobalName = " .str" );
11921191
11931192 // / Returns a pointer to a constant global variable for the given file-scope
11941193 // / compound literal expression.
You can’t perform that action at this time.
0 commit comments