summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-01-25 02:32:41 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-01-25 02:32:41 +0000
commit7139af42ce181d285e9c5aa1301403c2eaec665c (patch)
tree6b052eed4b53e3096fc6e517caa98713ddbac18c /clang/lib/CodeGen/CGDecl.cpp
parentcf2b7ba4a762ae463ef45ee3f004ef6e309e5124 (diff)
downloadbcm5719-llvm-7139af42ce181d285e9c5aa1301403c2eaec665c.tar.gz
bcm5719-llvm-7139af42ce181d285e9c5aa1301403c2eaec665c.zip
Rename Expr::isConstantExpr to Expr::isConstantInitializer; this more
accurately states what the function is trying to do and how it is different from Expr::isEvaluatable. Also get rid of a parameter that is both unused and inaccurate. llvm-svn: 62951
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 1acebaed4b9..6774f33337a 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -86,7 +86,7 @@ CodeGenFunction::GenerateStaticBlockVarDecl(const VarDecl &D,
if ((D.getInit() == 0) || NoInit) {
Init = llvm::Constant::getNullValue(LTy);
} else {
- if (D.getInit()->isConstantExpr(getContext(), 0))
+ if (D.getInit()->isConstantInitializer(getContext()))
Init = CGM.EmitConstantExpr(D.getInit(), this);
else {
assert(getContext().getLangOptions().CPlusPlus &&
OpenPOWER on IntegriCloud