summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-10-18 02:09:09 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-10-18 02:09:09 +0000
commitcb2a056980fd2d2546ebb4ee5e23d4255a4c2356 (patch)
tree7b68e168382ef4cf065c5f8aedef52ba8ec38a90 /clang/lib/AST/Expr.cpp
parentb0e1c2bab58e8fd89eb1cfb84be3ded9fdb51e72 (diff)
downloadbcm5719-llvm-cb2a056980fd2d2546ebb4ee5e23d4255a4c2356.tar.gz
bcm5719-llvm-cb2a056980fd2d2546ebb4ee5e23d4255a4c2356.zip
Add FIXME... maybe Nate will get bored? :)
llvm-svn: 84389
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index d9de698175a..c3cc4bd7412 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -1744,6 +1744,8 @@ unsigned ExtVectorElementExpr::getNumElements() const {
/// containsDuplicateElements - Return true if any element access is repeated.
bool ExtVectorElementExpr::containsDuplicateElements() const {
+ // FIXME: Refactor this code to an accessor on the AST node which returns the
+ // "type" of component access, and share with code below and in Sema.
llvm::StringRef Comp = Accessor->getNameStr();
// Halving swizzles do not contain duplicate elements.
OpenPOWER on IntegriCloud