summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDeclCXX.cpp
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2008-10-31 09:52:39 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2008-10-31 09:52:39 +0000
commitd79592448b90650808aca35570220c12d773a163 (patch)
treeefc9545b6bbd946d3303c7e834b91a85511bc7be /clang/lib/Parse/ParseDeclCXX.cpp
parentada702ef45247b42511ff0fb555a8ddcba94e780 (diff)
downloadbcm5719-llvm-d79592448b90650808aca35570220c12d773a163.tar.gz
bcm5719-llvm-d79592448b90650808aca35570220c12d773a163.zip
Made the mechanism of defining preprocessor defs for maxint, ptrdiff_t, wchar
etc more generic. For some targets, long may not be equal to pointer size. For example: PIC16 has int as i16, ptr as i16 but long as i32. Also fixed a few build warnings in assert() functions in CFRefCount.cpp, CGDecl.cpp, SemaDeclCXX.cpp and ParseDeclCXX.cpp. llvm-svn: 58501
Diffstat (limited to 'clang/lib/Parse/ParseDeclCXX.cpp')
-rw-r--r--clang/lib/Parse/ParseDeclCXX.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp
index 21c7d6f0fe1..7d03c591139 100644
--- a/clang/lib/Parse/ParseDeclCXX.cpp
+++ b/clang/lib/Parse/ParseDeclCXX.cpp
@@ -551,9 +551,9 @@ Parser::DeclTy *Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS) {
///
void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc,
unsigned TagType, DeclTy *TagDecl) {
- assert(TagType == DeclSpec::TST_struct ||
+ assert((TagType == DeclSpec::TST_struct ||
TagType == DeclSpec::TST_union ||
- TagType == DeclSpec::TST_class && "Invalid TagType!");
+ TagType == DeclSpec::TST_class) && "Invalid TagType!");
SourceLocation LBraceLoc = ConsumeBrace();
@@ -626,8 +626,8 @@ void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc,
// For a local class of inline method, pop the LexedMethodsForTopClass that
// was previously pushed.
- assert(CurScope->isInCXXInlineMethodScope() ||
- TopClassStacks.size() == 1 &&
+ assert((CurScope->isInCXXInlineMethodScope() ||
+ TopClassStacks.size() == 1) &&
"MethodLexers not getting popped properly!");
if (CurScope->isInCXXInlineMethodScope())
PopTopClassStack();
OpenPOWER on IntegriCloud