Skip to content

Commit 2bf78ca

Browse files
committed
rebase
1 parent 5af4c28 commit 2bf78ca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clang/include/clang/Basic/Builtins.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,7 @@ def IsWithinLifetime : LangBuiltin<"CXX_LANG"> {
968968
let Spellings = ["__builtin_is_within_lifetime"];
969969
let Attributes = [NoThrow, CustomTypeChecking, Consteval];
970970
let Prototype = "bool(void*)";
971+
}
971972

972973
def ClearPadding : LangBuiltin<"CXX_LANG"> {
973974
let Spellings = ["__builtin_clear_padding"];

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2711,12 +2711,12 @@ struct PaddingClearer {
27112711
if (Field->isBitField()) {
27122712
llvm::dbgs() << "clear_padding found bit field. Adding Interval ["
27132713
<< StartBitOffset + FieldOffset << " , "
2714-
<< FieldOffset + Field->getBitWidthValue(CGF.getContext())
2714+
<< FieldOffset + Field->getBitWidthValue()
27152715
<< ")\n";
27162716
OccuppiedIntervals.push_back(
27172717
BitInterval{StartBitOffset + FieldOffset,
27182718
StartBitOffset + FieldOffset +
2719-
Field->getBitWidthValue(CGF.getContext())});
2719+
Field->getBitWidthValue()});
27202720
} else {
27212721
Queue.push_back(
27222722
Data{StartBitOffset + FieldOffset, Field->getType(), true});

0 commit comments

Comments
 (0)