diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:17:27 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:17:27 +0000 |
commit | dbab2d2272a3da4d2cd6153d079a0ce6e34e94af (patch) | |
tree | c1fbe1f203fb9acf85911b2c37ac6ba11de6d5ca | |
parent | 36133dd324a0583979cb9e219306726428270096 (diff) |
Cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56578 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/DarwinTargetAsmInfo.cpp | 2 | ||||
-rw-r--r-- | lib/Target/ELFTargetAsmInfo.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/DarwinTargetAsmInfo.cpp b/lib/Target/DarwinTargetAsmInfo.cpp index 81a3342071..0ae304e2d4 100644 --- a/lib/Target/DarwinTargetAsmInfo.cpp +++ b/lib/Target/DarwinTargetAsmInfo.cpp @@ -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()); } 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()); } |