[clang] 99fe4d3 - Set EnableAIXExtendedAltivecABI in BackendUtils from LangOpts
Zarko Todorovski via cfe-commits
cfe-commits at lists.llvm.org
Mon May 1 08:25:53 PDT 2023
Author: Zarko Todorovski
Date: 2023-05-01T10:39:14-04:00
New Revision: 99fe4d38266ec2527266d996ac95e20c08f498f1
URL: https://github.com/llvm/llvm-project/commit/99fe4d38266ec2527266d996ac95e20c08f498f1
DIFF: https://github.com/llvm/llvm-project/commit/99fe4d38266ec2527266d996ac95e20c08f498f1.diff
LOG: Set EnableAIXExtendedAltivecABI in BackendUtils from LangOpts
Fix a bug where after
github.com/llvm/llvm-project/commit/68dd51421f16f1e17cd453cb1730fcca99a6cfb7
refactor where we are not passing -mabi=vec-extabi to th backend.
Added:
Modified:
clang/lib/CodeGen/BackendUtil.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index ea38cc402575a..a0cf26006d16f 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -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;
More information about the cfe-commits
mailing list