Skip to content

Commit 6362a33

Browse files
committed
clang-format
1 parent c7387c5 commit 6362a33

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

clang/lib/CodeGen/CGExpr.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

clang/lib/CodeGen/CodeGenModule.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)