[llvm] r195748 - [PM] Remove four extraneous 'typename's that Clang (in C++11 mode) is

Chandler Carruth chandlerc at gmail.com
Tue Nov 26 03:31:06 PST 2013


Author: chandlerc
Date: Tue Nov 26 05:31:06 2013
New Revision: 195748

URL: http://llvm.org/viewvc/llvm-project?rev=195748&view=rev
Log:
[PM] Remove four extraneous 'typename's that Clang (in C++11 mode) is
happy with but GCC complains about. I'm assuming both compilers are
correct and these are optional in C++11 because I'm too tired to read
the standard. ;]

Modified:
    llvm/trunk/include/llvm/IR/PassManager.h

Modified: llvm/trunk/include/llvm/IR/PassManager.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/PassManager.h?rev=195748&r1=195747&r2=195748&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/PassManager.h (original)
+++ llvm/trunk/include/llvm/IR/PassManager.h Tue Nov 26 05:31:06 2013
@@ -562,8 +562,8 @@ class ModuleAnalysisManager
     : public detail::AnalysisManagerBase<ModuleAnalysisManager, Module *> {
   friend class detail::AnalysisManagerBase<ModuleAnalysisManager, Module *>;
   typedef detail::AnalysisManagerBase<ModuleAnalysisManager, Module *> BaseT;
-  typedef typename BaseT::ResultConceptT ResultConceptT;
-  typedef typename BaseT::PassConceptT PassConceptT;
+  typedef BaseT::ResultConceptT ResultConceptT;
+  typedef BaseT::PassConceptT PassConceptT;
 
 public:
   // Public methods provided by the base class.
@@ -596,8 +596,8 @@ class FunctionAnalysisManager
     : public detail::AnalysisManagerBase<FunctionAnalysisManager, Function *> {
   friend class detail::AnalysisManagerBase<FunctionAnalysisManager, Function *>;
   typedef detail::AnalysisManagerBase<FunctionAnalysisManager, Function *> BaseT;
-  typedef typename BaseT::ResultConceptT ResultConceptT;
-  typedef typename BaseT::PassConceptT PassConceptT;
+  typedef BaseT::ResultConceptT ResultConceptT;
+  typedef BaseT::PassConceptT PassConceptT;
 
 public:
   // Most public APIs are inherited from the CRTP base class.





More information about the llvm-commits mailing list