Set EnableAIXExtendedAltivecABI in BackendUtils from LangOpts
authorZarko Todorovski <zarko@ca.ibm.com>
Mon, 1 May 2023 14:30:29 +0000 (10:30 -0400)
committerZarko Todorovski <zarko@ca.ibm.com>
Mon, 1 May 2023 14:39:14 +0000 (10:39 -0400)
Fix a bug where after
github.com/llvm/llvm-project/commit/68dd51421f16f1e17cd453cb1730fcca99a6cfb7
refactor where we are not passing -mabi=vec-extabi to th backend.

clang/lib/CodeGen/BackendUtil.cpp

index ea38cc4..a0cf260 100644 (file)
@@ -428,7 +428,7 @@ static bool initTargetOptions(DiagnosticsEngine &Diags,
   Options.EmitAddrsig = CodeGenOpts.Addrsig;
   Options.ForceDwarfFrameSection = CodeGenOpts.ForceDwarfFrameSection;
   Options.EmitCallSiteInfo = CodeGenOpts.EmitCallSiteInfo;
-  Options.EnableAIXExtendedAltivecABI = CodeGenOpts.EnableAIXExtendedAltivecABI;
+  Options.EnableAIXExtendedAltivecABI = LangOpts.EnableAIXExtendedAltivecABI;
   Options.XRayOmitFunctionIndex = CodeGenOpts.XRayOmitFunctionIndex;
   Options.LoopAlignment = CodeGenOpts.LoopAlignment;
   Options.DebugStrictDwarf = CodeGenOpts.DebugStrictDwarf;