llvm-svn: 56578
This commit is contained in:
Anton Korobeynikov 2008-09-24 22:17:27 +00:00
parent 1b3c67c5cf
commit 154a35a723
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ DarwinTargetAsmInfo::MergeableStringSection(const GlobalVariable *GV) const {
const Section*
DarwinTargetAsmInfo::MergeableConstSection(const GlobalVariable *GV) const {
Constant *C = cast<GlobalVariable>(GV)->getInitializer();
Constant *C = GV->getInitializer();
return MergeableConstSection(C->getType());
}

View File

@ -96,7 +96,7 @@ ELFTargetAsmInfo::SelectSectionForMachineConst(const Type *Ty) const {
const Section*
ELFTargetAsmInfo::MergeableConstSection(const GlobalVariable *GV) const {
Constant *C = cast<GlobalVariable>(GV)->getInitializer();
Constant *C = GV->getInitializer();
return MergeableConstSection(C->getType());
}