diff options
author | Devang Patel <dpatel@apple.com> | 2011-04-05 20:28:21 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-04-05 20:28:21 +0000 |
commit | 095421b4a8b6da1001623345f0b4180670843626 (patch) | |
tree | 6c7e736ad90ca6b90f248ff383051701dee8ca7b /clang/lib/CodeGen | |
parent | 92d313a021ea531dfddb335d257a3e84ad38a1e6 (diff) | |
download | bcm5719-llvm-095421b4a8b6da1001623345f0b4180670843626.tar.gz bcm5719-llvm-095421b4a8b6da1001623345f0b4180670843626.zip |
Fix typo.
llvm-svn: 128921
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 | ||||
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 24212967a34..5ae38749a8d 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1534,6 +1534,10 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, QualType FnType, 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); diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 13349b020e5..9b400cbe2aa 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -69,7 +69,7 @@ void CodeGenFunction::EmitDecl(const Decl &D) { 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; |