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 | 08f10bc7f6fcaa1ca13f7cd0027117d4cf05bef0 (patch) | |
| tree | c1fbe1f203fb9acf85911b2c37ac6ba11de6d5ca | |
| parent | 9a213e410c1f2639bfa8c363300a5ef409a38838 (diff) | |
| download | external_llvm-08f10bc7f6fcaa1ca13f7cd0027117d4cf05bef0.zip external_llvm-08f10bc7f6fcaa1ca13f7cd0027117d4cf05bef0.tar.gz external_llvm-08f10bc7f6fcaa1ca13f7cd0027117d4cf05bef0.tar.bz2 | |
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 81a3342..0ae304e 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 b9e9812..7c9e454 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()); } |
