Index: src/IceTargetLowering.cpp |
diff --git a/src/IceTargetLowering.cpp b/src/IceTargetLowering.cpp |
index 9a8a02ab9ed504efbe3652ca78ae16d2bcfaf6ba..8d67e8b9f68c99d9c280c4df6554f63c5ee922dd 100644 |
--- a/src/IceTargetLowering.cpp |
+++ b/src/IceTargetLowering.cpp |
@@ -113,7 +113,7 @@ std::unique_ptr<Assembler> TargetLowering::createAssembler(TargetArch Target, |
Cfg *Func) { |
#define SUBZERO_TARGET(X) \ |
if (Target == Target_##X) \ |
- return std::unique_ptr<Assembler>(new X::Assembler##X()); |
+ return std::unique_ptr<Assembler>(new X::Assembler##X(Func->getContext())); |
#include "llvm/Config/SZTargets.def" |
Func->setError("Unsupported target assembler"); |