diff options
Diffstat (limited to 'lib/Target/ELFTargetAsmInfo.cpp')
-rw-r--r-- | lib/Target/ELFTargetAsmInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp index b9e9812575..7c9e4546d2 100644 --- a/lib/Target/ELFTargetAsmInfo.cpp +++ b/lib/Target/ELFTargetAsmInfo.cpp @@ -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()); } |