[llvm-commits] [llvm] r115924 - /llvm/trunk/lib/Analysis/ProfileInfo.cpp

Owen Anderson resistor at mac.com
Thu Oct 7 10:04:18 PDT 2010


Author: resistor
Date: Thu Oct  7 12:04:18 2010
New Revision: 115924

URL: http://llvm.org/viewvc/llvm-project?rev=115924&view=rev
Log:
Fix a warning when building with clang++.

Modified:
    llvm/trunk/lib/Analysis/ProfileInfo.cpp

Modified: llvm/trunk/lib/Analysis/ProfileInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ProfileInfo.cpp?rev=115924&r1=115923&r2=115924&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ProfileInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/ProfileInfo.cpp Thu Oct  7 12:04:18 2010
@@ -24,8 +24,9 @@
 #include <limits>
 using namespace llvm;
 
-template<>
-char llvm::ProfileInfoT<Function,BasicBlock>::ID = 0;
+namespace llvm {
+  template<> char ProfileInfoT<Function,BasicBlock>::ID = 0;
+}
 
 // Register the ProfileInfo interface, providing a nice name to refer to.
 INITIALIZE_ANALYSIS_GROUP(ProfileInfo, "Profile Information");





More information about the llvm-commits mailing list