summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2010-09-13 20:56:31 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2010-09-13 20:56:31 +0000
commit8eb06f17c4c476b1f80d9ffa541106171b404bae (patch)
tree22cd5ce7517184297e3151aed93a77fe379af31a /clang/lib/CodeGen
parent1394a4b7157d88d42e40edd9ebea42646bec0b4e (diff)
downloadbcm5719-llvm-8eb06f17c4c476b1f80d9ffa541106171b404bae.tar.gz
bcm5719-llvm-8eb06f17c4c476b1f80d9ffa541106171b404bae.zip
Eagerly evaluate type traits in Sema instead of lazily in AST. They actually need Sema access to be correct, fixes coming up.
llvm-svn: 113782
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index a783737a0be..45c5fb9f0b7 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/lib/CodeGen/CGExprScalar.cpp
@@ -278,8 +278,7 @@ public:
return 0;
}
Value *VisitUnaryTypeTraitExpr(const UnaryTypeTraitExpr *E) {
- return llvm::ConstantInt::get(Builder.getInt1Ty(),
- E->EvaluateTrait(CGF.getContext()));
+ return llvm::ConstantInt::get(Builder.getInt1Ty(), E->getValue());
}
Value *VisitCXXPseudoDestructorExpr(const CXXPseudoDestructorExpr *E) {
OpenPOWER on IntegriCloud