[AMDGPU] Fix regression in test clang/test/CodeGen/backend-unsupported-error.ll

llvm-svn: 313718
This commit is contained in:
Stanislav Mekhanoshin 2017-09-20 06:10:15 +00:00
parent 7d85b8f6f6
commit 5641820141

View File

@ -337,7 +337,8 @@ void AMDGPUTargetMachine::adjustPassManager(PassManagerBuilder &Builder) {
bool AMDGPUAA = EnableAMDGPUAliasAnalysis && EnableOpt;
bool LibCallSimplify = EnableLibCallSimplify && EnableOpt;
Builder.Inliner = createAMDGPUFunctionInliningPass();
if (EnableAMDGPUFunctionCalls)
Builder.Inliner = createAMDGPUFunctionInliningPass();
if (Internalize) {
// If we're generating code, we always have the whole program available. The