diff options
| author | Nate Begeman <natebegeman@mac.com> | 2009-06-25 21:06:09 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2009-06-25 21:06:09 +0000 |
| commit | 0359e1220865450dbacb7565b8b3a5fd0000b1fe (patch) | |
| tree | ff77ff64d53dd5a6b975ef576d2ec757cdc5a828 /clang/lib/AST/Expr.cpp | |
| parent | 188e87fa2148939985eea5826ca8804cc41b44c8 (diff) | |
| download | bcm5719-llvm-0359e1220865450dbacb7565b8b3a5fd0000b1fe.tar.gz bcm5719-llvm-0359e1220865450dbacb7565b8b3a5fd0000b1fe.zip | |
OpenCL 1.0 Support, patch 1/N: upper case swizzle operator and hex element index.
llvm-svn: 74202
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
| -rw-r--r-- | clang/lib/AST/Expr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index 4a3ad2641ef..fce88cc0da2 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/lib/AST/Expr.cpp @@ -1496,7 +1496,7 @@ bool ExtVectorElementExpr::containsDuplicateElements() const { return false; // Advance past s-char prefix on hex swizzles. - if (*compStr == 's') { + if (*compStr == 's' || *compStr == 'S') { compStr++; length--; } @@ -1514,7 +1514,7 @@ bool ExtVectorElementExpr::containsDuplicateElements() const { void ExtVectorElementExpr::getEncodedElementAccess( llvm::SmallVectorImpl<unsigned> &Elts) const { const char *compStr = Accessor->getName(); - if (*compStr == 's') + if (*compStr == 's' || *compStr == 'S') compStr++; bool isHi = !strcmp(compStr, "hi"); |

