[cfe-commits] r159095 - /cfe/trunk/tools/diagtool/DiagnosticNames.cpp

Jordan Rose jordan_rose at apple.com
Sat Jun 23 17:27:36 PDT 2012


Author: jrose
Date: Sat Jun 23 19:27:36 2012
New Revision: 159095

URL: http://llvm.org/viewvc/llvm-project?rev=159095&view=rev
Log:
[diagtool] Appease buildbots by explicitly using makeArrayRef.

Modified:
    cfe/trunk/tools/diagtool/DiagnosticNames.cpp

Modified: cfe/trunk/tools/diagtool/DiagnosticNames.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/diagtool/DiagnosticNames.cpp?rev=159095&r1=159094&r2=159095&view=diff
==============================================================================
--- cfe/trunk/tools/diagtool/DiagnosticNames.cpp (original)
+++ cfe/trunk/tools/diagtool/DiagnosticNames.cpp Sat Jun 23 19:27:36 2012
@@ -21,7 +21,7 @@
 };
 
 llvm::ArrayRef<DiagnosticRecord> diagtool::getBuiltinDiagnosticsByName() {
-  return BuiltinDiagnosticsByName;
+  return llvm::makeArrayRef(BuiltinDiagnosticsByName);
 }
 
 
@@ -73,5 +73,5 @@
 };
 
 llvm::ArrayRef<GroupRecord> diagtool::getDiagnosticGroups() {
-  return OptionTable;
+  return llvm::makeArrayRef(OptionTable);
 }





More information about the cfe-commits mailing list