[cfe-commits] r128921 - in /cfe/trunk/lib/CodeGen: CGDebugInfo.cpp CGDecl.cpp
Devang Patel
dpatel at apple.com
Tue Apr 5 13:28:21 PDT 2011
Author: dpatel
Date: Tue Apr 5 15:28:21 2011
New Revision: 128921
URL: http://llvm.org/viewvc/llvm-project?rev=128921&view=rev
Log:
Fix typo.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
cfe/trunk/lib/CodeGen/CGDecl.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=128921&r1=128920&r2=128921&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Tue Apr 5 15:28:21 2011
@@ -1534,6 +1534,10 @@
FnBeginRegionCount.push_back(RegionStack.size());
const Decl *D = GD.getDecl();
+ if (const ClassTemplateSpecializationDecl *TSpecial
+ = dyn_cast<ClassTemplateSpecializationDecl>(D))
+ assert (0 && "Got one!");
+
unsigned Flags = 0;
llvm::DIFile Unit = getOrCreateFile(CurLoc);
llvm::DIDescriptor FDContext(Unit);
Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDecl.cpp?rev=128921&r1=128920&r2=128921&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Tue Apr 5 15:28:21 2011
@@ -69,7 +69,7 @@
case Decl::Friend:
case Decl::FriendTemplate:
case Decl::Block:
- assert(0 && "Declaration not should not be in declstmts!");
+ assert(0 && "Declaration should not be in declstmts!");
case Decl::Function: // void X();
case Decl::Record: // struct/union/class X;
case Decl::Enum: // enum X;
More information about the cfe-commits
mailing list