Index: src/IceTargetLoweringX8632.h |
diff --git a/src/IceTargetLoweringX8632.h b/src/IceTargetLoweringX8632.h |
index 4953ffc2a04f38bb04ede0ec851a757407b8a9fb..1408873b1fd4f9d8edd03565f6432f47806d9091 100644 |
--- a/src/IceTargetLoweringX8632.h |
+++ b/src/IceTargetLoweringX8632.h |
@@ -136,8 +136,9 @@ protected: |
InstCall *makeHelperCall(const IceString &Name, Variable *Dest, |
SizeT MaxSrcs) { |
bool SuppressMangling = true; |
- Type Ty = Dest ? Dest->getType() : IceType_void; |
- Constant *CallTarget = Ctx->getConstantSym(Ty, 0, Name, SuppressMangling); |
+ const Type FunctionPointerType = IceType_i32; |
+ Constant *CallTarget = |
+ Ctx->getConstantSym(FunctionPointerType, 0, Name, SuppressMangling); |
InstCall *Call = InstCall::create(Func, MaxSrcs, Dest, CallTarget); |
return Call; |
} |