summaryrefslogtreecommitdiffstats
path: root/include/clang/AST/DeclGroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/AST/DeclGroup.h')
-rw-r--r--include/clang/AST/DeclGroup.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/DeclGroup.h b/include/clang/AST/DeclGroup.h
index cb9e168..63cdac5 100644
--- a/include/clang/AST/DeclGroup.h
+++ b/include/clang/AST/DeclGroup.h
@@ -39,12 +39,12 @@ public:
Decl*& operator[](unsigned i) {
assert (i < NumDecls && "Out-of-bounds access.");
- return *((Decl**) (this+1));
+ return ((Decl**) (this+1))[i];
}
Decl* const& operator[](unsigned i) const {
assert (i < NumDecls && "Out-of-bounds access.");
- return *((Decl* const*) (this+1));
+ return ((Decl* const*) (this+1))[i];
}
};
OpenPOWER on IntegriCloud