Skip to content

Commit

Permalink
[NFC] Add missing ENABLE_CLASSIC_FLANG guard.
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Barton <richard.barton@arm.com>
  • Loading branch information
RichBarton-Arm authored and bryanpkc committed May 5, 2022
1 parent 34a5971 commit d1bdb47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/lib/Driver/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4651,9 +4651,11 @@ class ToolSelector final {
if (!T->hasIntegratedBackend() && !(OutputIsLLVM && T->canEmitIR()))
return nullptr;

#ifdef ENABLE_CLASSIC_FLANG
// Classic Flang is not integrated with the backend.
if (C.getDriver().IsFlangMode() && !T->hasIntegratedAssembler())
return nullptr;
#endif

if (T->canEmitIR() && ((SaveTemps && !InputIsBitcode) || EmbedBitcode))
return nullptr;
Expand Down

0 comments on commit d1bdb47

Please sign in to comment.