diff options
| -rw-r--r-- | polly/lib/CodeGen/PTXGenerator.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/polly/lib/CodeGen/PTXGenerator.cpp b/polly/lib/CodeGen/PTXGenerator.cpp index 5e1c9f3d6de..06a83d7798b 100644 --- a/polly/lib/CodeGen/PTXGenerator.cpp +++ b/polly/lib/CodeGen/PTXGenerator.cpp @@ -561,9 +561,7 @@ static bool createASMAsString(Module *New, const StringRef &Triple, // Build up all of the passes that we want to do to the module. PassManager PM; - TargetLibraryInfo *TLI = new TargetLibraryInfo(TheTriple); - PM.add(TLI); - + PM.add(new TargetLibraryInfoWrapperPass(TheTriple)); PM.add(new DataLayoutPass(*Target.getDataLayout())); Target.addAnalysisPasses(PM); |

