forked from OSchip/llvm-project
Comment fix: change a question to an answer.
llvm-svn: 66010
This commit is contained in:
parent
42d2a3add6
commit
a1493b3b4d
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue