summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-07-02 00:35:47 +0000
committerBill Wendling <isanbard@gmail.com>2008-07-02 00:35:47 +0000
commit12432cfc59862e6a71b4f320677a41788cdd0860 (patch)
treefe31946699f829f62041d02a1c5728fa68530e23 /lib/CodeGen/MachineModuleInfo.cpp
parent445723bfb0d3c4cb7ecebb60710c669cf3dd2c8d (diff)
downloadllvm-12432cfc59862e6a71b4f320677a41788cdd0860.tar.gz
llvm-12432cfc59862e6a71b4f320677a41788cdd0860.tar.bz2
llvm-12432cfc59862e6a71b4f320677a41788cdd0860.tar.xz
Sorry. I couldn't sleep at night knowing I put these ugly casts into the source tree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--lib/CodeGen/MachineModuleInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp
index 44e4ee36ec..473b60554b 100644
--- a/lib/CodeGen/MachineModuleInfo.cpp
+++ b/lib/CodeGen/MachineModuleInfo.cpp
@@ -587,8 +587,7 @@ GlobalVariable *DISerializer::Serialize(DebugInfoDesc *DD) {
// Create the GlobalVariable early to prevent infinite recursion.
GlobalVariable *GV =
- new GlobalVariable(Ty, true,
- (GlobalValue::LinkageTypes)DD->getLinkage(),
+ new GlobalVariable(Ty, true, DD->getLinkage(),
NULL, DD->getDescString(), M);
GV->setSection("llvm.metadata");