Skip to content

Commit 333ffb3

Browse files
plotfiJDevlieghere
authored andcommitted
Fixing up IRGenModule to handle changes in CodeGenOptions.
DisableFPElim was removed from CGO in cfe r366645. This change fixes the build for master-next. (cherry picked from commit 5d0fec6)
1 parent 970eb2f commit 333ffb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/IRGen/IRGenModule.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ static clang::CodeGenerator *createClangCodeGenerator(ASTContext &Context,
9494

9595
auto &CGO = Importer->getClangCodeGenOpts();
9696
CGO.OptimizationLevel = Opts.shouldOptimize() ? 3 : 0;
97-
CGO.DisableFPElim = Opts.DisableFPElim;
97+
CGO.setFramePointer(Opts.DisableFPElim
98+
? clang::CodeGenOptions::FramePointerKind::All
99+
: clang::CodeGenOptions::FramePointerKind::None);
98100
CGO.DiscardValueNames = !Opts.shouldProvideValueNames();
99101
switch (Opts.DebugInfoLevel) {
100102
case IRGenDebugInfoLevel::None:

0 commit comments

Comments
 (0)