diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-06-26 06:27:57 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-06-26 06:27:57 +0000 |
| commit | 4b413ea3bfa05d915b355298803c07071951c00e (patch) | |
| tree | 6fc5c29c5ab8c218b00a1b57fc593c43a5725d11 /clang/lib/Sema/Sema.h | |
| parent | dd7c10227b862a3de396a3e4a934cb6de6cfed81 (diff) | |
| download | bcm5719-llvm-4b413ea3bfa05d915b355298803c07071951c00e.tar.gz bcm5719-llvm-4b413ea3bfa05d915b355298803c07071951c00e.zip | |
fix a bug handling type attributes in the declspec. declspec processing
used to mutate the attribute list for declspecs when the type was
converted, breaking the case where one declspec was shared by multiple
declarators.
This fixes rdar://6032532.
llvm-svn: 52769
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 89d0d4011f6..278c8415d6e 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -198,8 +198,8 @@ public: //===--------------------------------------------------------------------===// // Type Analysis / Processing: SemaType.cpp. // - QualType ConvertDeclSpecToType(DeclSpec &DS); - AttributeList *ProcessTypeAttributes(QualType &Result, AttributeList *AL); + QualType ConvertDeclSpecToType(const DeclSpec &DS); + void ProcessTypeAttributes(QualType &Result, const AttributeList *AL); QualType GetTypeForDeclarator(Declarator &D, Scope *S); @@ -305,7 +305,7 @@ private: /// The raw attribute contains 1 argument, the id of the address space /// for the type. QualType HandleAddressSpaceTypeAttribute(QualType curType, - AttributeList *rawAttr); + const AttributeList *rawAttr); /// HandleModeTypeAttribute - this attribute modifies the width of a /// primitive type. Note that this is a variable attribute, and not |

