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 @@ -3447,8 +3447,7 @@ LValue CodeGenFunction::EmitPredefinedLValue(const PredefinedExpr *E) {
3447
3447
auto C = CGM.GetAddrOfConstantCString (Name, GVName);
3448
3448
return MakeAddrLValue (C, E->getType (), AlignmentSource::Decl);
3449
3449
} else {
3450
- auto C =
3451
- CGM.GetAddrOfConstantCString (std::string (FnName), GVName);
3450
+ auto C = CGM.GetAddrOfConstantCString (std::string (FnName), GVName);
3452
3451
return MakeAddrLValue (C, E->getType (), AlignmentSource::Decl);
3453
3452
}
3454
3453
}
Original file line number Diff line number Diff line change @@ -6920,8 +6920,8 @@ CodeGenModule::GetAddrOfConstantStringFromObjCEncode(const ObjCEncodeExpr *E) {
6920
6920
// / GetAddrOfConstantCString - Returns a pointer to a character array containing
6921
6921
// / the literal and a terminating '\0' character.
6922
6922
// / The result has pointer to array type.
6923
- ConstantAddress CodeGenModule::GetAddrOfConstantCString (
6924
- const std::string &Str, StringRef GlobalName) {
6923
+ ConstantAddress CodeGenModule::GetAddrOfConstantCString (const std::string &Str,
6924
+ StringRef GlobalName) {
6925
6925
StringRef StrWithNull (Str.c_str (), Str.size () + 1 );
6926
6926
CharUnits Alignment = getContext ().getAlignOfGlobalVarInChars (
6927
6927
getContext ().CharTy , /* VD=*/ nullptr );
Original file line number Diff line number Diff line change @@ -1185,9 +1185,8 @@ class CodeGenModule : public CodeGenTypeCache {
1185
1185
// /
1186
1186
// / \param GlobalName If provided, the name to use for the global (if one is
1187
1187
// / created).
1188
- ConstantAddress
1189
- GetAddrOfConstantCString (const std::string &Str,
1190
- StringRef GlobalName = " .str" );
1188
+ ConstantAddress GetAddrOfConstantCString (const std::string &Str,
1189
+ StringRef GlobalName = " .str" );
1191
1190
1192
1191
// / Returns a pointer to a constant global variable for the given file-scope
1193
1192
// / compound literal expression.
You can’t perform that action at this time.
0 commit comments