diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp index 6543596d82b149..528b22914ba261 100644 --- a/polly/lib/Support/RegisterPasses.cpp +++ b/polly/lib/Support/RegisterPasses.cpp @@ -535,8 +535,9 @@ static void buildDefaultPollyPipeline(FunctionPassManager &PM, case CODEGEN_NONE: break; } + } #ifdef GPU_CODEGEN - } else + else report_fatal_error("Option -polly-target=gpu not supported for NPM", false); #endif