Comment fix: change a question to an answer.

llvm-svn: 66010
This commit is contained in:
Eli Friedman 2009-03-04 04:22:58 +00:00
parent 42d2a3add6
commit a1493b3b4d
1 changed files with 3 additions and 5 deletions

View File

@ -127,11 +127,9 @@ void CodeGenFunction::EmitStaticBlockVarDecl(const VarDecl &D) {
GenerateStaticCXXBlockVarDeclInit(D, GV);
} else {
// The initializer may differ in type from the global. Rewrite
// the global to match the initializer!?
//
// FIXME: This matches what we have been doing historically, but
// it seems bad. Shouldn't the init expression have the right
// type?
// the global to match the initializer. (We have to do this
// because some types, like unions, can't be completely represented
// in the LLVM type system.)
if (GV->getType() != Init->getType()) {
llvm::GlobalVariable *OldGV = GV;