Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F11055266
D64962.diff
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Dec 14, 12:31 AM
Size
587 B
Mime Type
text/x-patch; charset=utf-8
Expires
Sun, Dec 15, 12:31 AM (23 h, 59 m)
Engine
blob
Format
Raw Data
Handle
6134364
Attached To
D64962: appendToGlobalCtors: allow for llvm.global_ctors functions of varying type
D64962.diff
View Options
Index: lib/Transforms/Utils/ModuleUtils.cpp
===================================================================
--- lib/Transforms/Utils/ModuleUtils.cpp
+++ lib/Transforms/Utils/ModuleUtils.cpp
@@ -42,7 +42,7 @@
// Build a 3 field global_ctor entry. We don't take a comdat key.
Constant *CSVals[3];
CSVals[0] = IRB.getInt32(Priority);
- CSVals[1] = F;
+ CSVals[1] = ConstantExpr::getBitCast(F, FnTy);
CSVals[2] = Data ? ConstantExpr::getPointerCast(Data, IRB.getInt8PtrTy())
: Constant::getNullValue(IRB.getInt8PtrTy());
Constant *RuntimeCtorInit =
Event Timeline
Log In to Comment