Skip to content

Commit 9fab5e1

Browse files
committed
Merge from 'main' to 'sycl-web' (2 commits)
CONFLICT (content): Merge conflict in clang/lib/CodeGen/CodeGenModule.cpp
2 parents f65a38c + ed73121 commit 9fab5e1

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,11 +2090,9 @@ void CodeGenModule::EmitCtorList(CtorList &Fns, const char *GlobalName) {
20902090
for (const auto &I : Fns) {
20912091
auto ctor = ctors.beginStruct(CtorStructTy);
20922092
ctor.addInt(Int32Ty, I.Priority);
2093-
ctor.add(llvm::ConstantExpr::getBitCast(I.Initializer, CtorPFTy));
2094-
// Emit appropriate bitcasts for pointers of different address spaces.
2093+
ctor.add(I.Initializer);
20952094
if (I.AssociatedData)
2096-
ctor.add(llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast(
2097-
I.AssociatedData, TargetType));
2095+
ctor.add(I.AssociatedData);
20982096
else
20992097
ctor.addNullPointer(TargetType);
21002098
ctor.finishAndAddTo(ctors);
@@ -4995,9 +4993,7 @@ llvm::Constant *CodeGenModule::GetFunctionStart(const ValueDecl *Decl) {
49954993
llvm::GlobalValue *F =
49964994
cast<llvm::GlobalValue>(GetAddrOfFunction(Decl)->stripPointerCasts());
49974995

4998-
return llvm::ConstantExpr::getBitCast(
4999-
llvm::NoCFIValue::get(F),
5000-
llvm::PointerType::get(VMContext, F->getAddressSpace()));
4996+
return llvm::NoCFIValue::get(F);
50014997
}
50024998

50034999
static const FunctionDecl *

clang/lib/Format/TokenAnnotator.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3409,8 +3409,10 @@ static bool isFunctionDeclarationName(bool IsCpp, const FormatToken &Current,
34093409
Tok->isOneOf(TT_PointerOrReference, TT_StartOfName, tok::ellipsis)) {
34103410
return true;
34113411
}
3412-
if (Tok->isOneOf(tok::l_brace, TT_ObjCMethodExpr) || Tok->Tok.isLiteral())
3412+
if (Tok->isOneOf(tok::l_brace, tok::string_literal, TT_ObjCMethodExpr) ||
3413+
Tok->Tok.isLiteral()) {
34133414
return false;
3415+
}
34143416
}
34153417
return false;
34163418
}

0 commit comments

Comments
 (0)