Index: src/IceGlobalContext.cpp |
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp |
index be3d443489d23e76b98c29dd15fc976beff9a660..cac253b643c2cb4e1737a419373316fbf0e980aa 100644 |
--- a/src/IceGlobalContext.cpp |
+++ b/src/IceGlobalContext.cpp |
@@ -270,6 +270,8 @@ GlobalContext::GlobalContext(Ostream *OsDump, Ostream *OsEmit, Ostream *OsError, |
ProfileBlockInfoVarDecl->setName("__Sz_block_profile_info"); |
ProfileBlockInfoVarDecl->setSuppressMangling(); |
ProfileBlockInfoVarDecl->setLinkage(llvm::GlobalValue::ExternalLinkage); |
+ |
+ TargetLowering::staticInit(Flags.getTargetArch()); |
} |
void GlobalContext::translateFunctions() { |