Revert "Workaround bot failure with explicit conversion to MDTuple*"
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 7 Apr 2015 17:30:52 +0000 (17:30 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 7 Apr 2015 17:30:52 +0000 (17:30 +0000)
This reverts commit r234329, which insufficiently appeased older
`clang`s (apparently that wasn't the only call site).  r234331 was a
more complete fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234333 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/DIBuilder.cpp

index 2b0053be524c6cd952a90d099103daa60daac154..9ba2010916831cb20db7138a6a9b1336a92b1cbd 100644 (file)
@@ -860,7 +860,7 @@ void DIBuilder::replaceArrays(DICompositeType &T, DIArray Elements,
     if (Elements)
       N->replaceElements(Elements);
     if (TParams)
-      N->replaceTemplateParams(TParams.get());
+      N->replaceTemplateParams(MDTemplateParameterArray(TParams));
     T = N.get();
   }