Page MenuHomePhabricator

D64962.diff
No OneTemporary

File Metadata

Created
Sat, Dec 14, 12:31 AM

D64962.diff

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