diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 6f0fbf66b73..6ba6340040b 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -336,6 +336,7 @@ int main(int argc, char **argv) { InitializeAllTargets(); InitializeAllTargetMCs(); + InitializeAllAsmPrinters(); // Initialize passes PassRegistry &Registry = *PassRegistry::getPassRegistry();