Skip to content

Commit bbc830c

Browse files
committed
[LTT] Set the naked attribute
1 parent d3256d9 commit bbc830c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/IPO/LowerTypeTests.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,10 +1702,12 @@ void LowerTypeTestsModule::buildBitSetsFromFunctionsNative(
17021702
GlobalValue::PrivateLinkage,
17031703
M.getDataLayout().getProgramAddressSpace(),
17041704
".cfi.jumptable", &M);
1705+
JumpTableFn->addFnAttr(Attribute::Naked);
1706+
17051707
ArrayType *JumpTableEntryType = ArrayType::get(Int8Ty, EntrySize);
17061708
ArrayType *JumpTableType =
17071709
ArrayType::get(JumpTableEntryType, Functions.size());
1708-
auto JumpTable = ConstantExpr::getPointerCast(
1710+
auto *JumpTable = ConstantExpr::getPointerCast(
17091711
JumpTableFn, PointerType::getUnqual(M.getContext()));
17101712

17111713
lowerTypeTestCalls(TypeIds, JumpTable, GlobalLayout);

0 commit comments

Comments
 (0)