summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2008-09-01 11:33:04 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2008-09-01 11:33:04 +0000
commitf380a0de07881404633095f16efe921b98b8986c (patch)
tree5c3dd0696519cfb7eb271415bd544beb392e586b /clang/lib/CodeGen/CodeGenModule.cpp
parentfa558788e76cfcbdf06e3b7f9a2bc3b9825066e3 (diff)
downloadbcm5719-llvm-f380a0de07881404633095f16efe921b98b8986c.tar.gz
bcm5719-llvm-f380a0de07881404633095f16efe921b98b8986c.zip
codegen constant data as such. add QualType::isConstant()
llvm-svn: 55603
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 27dd600f0a2..5b784aada3f 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -449,6 +449,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) {
}
GV->setInitializer(Init);
+ GV->setConstant(D->getType().isConstant(Context));
// FIXME: This is silly; getTypeAlign should just work for incomplete arrays
unsigned Align;
OpenPOWER on IntegriCloud