diff options
| author | John McCall <rjmccall@apple.com> | 2011-07-15 06:56:33 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2011-07-15 06:56:33 +0000 |
| commit | b33fb3670b996e6779925bb329abfbc42e470e08 (patch) | |
| tree | 95c6d33ad880d07a2c4a91eabbb1e2db2ca5a4e3 /clang/lib | |
| parent | 1a65133b1123f54942bbdf5289e035d261e25352 (diff) | |
| download | bcm5719-llvm-b33fb3670b996e6779925bb329abfbc42e470e08.tar.gz bcm5719-llvm-b33fb3670b996e6779925bb329abfbc42e470e08.zip | |
Fix the definition of AsTypeExpr. I'm still not sure this
is right --- shouldn't there be a TypeLoc in here somewhere? ---
but at least it doesn't have a redundant QualType and a broken
children() method.
Noticed this while doing things in serialization.
llvm-svn: 135257
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index 410e9a736bb..a73e667e780 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -2578,7 +2578,7 @@ Value *ScalarExprEmitter::VisitBlockExpr(const BlockExpr *block) { Value *ScalarExprEmitter::VisitAsTypeExpr(AsTypeExpr *E) { Value *Src = CGF.EmitScalarExpr(E->getSrcExpr()); - const llvm::Type * DstTy = ConvertType(E->getDstType()); + const llvm::Type *DstTy = ConvertType(E->getType()); // Going from vec4->vec3 or vec3->vec4 is a special case and requires // a shuffle vector instead of a bitcast. |

