diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-16 04:34:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-16 04:34:33 +0000 |
commit | c2b443a698493d3f2fe6ce2d8e7798a659eb3aae (patch) | |
tree | bb2dbfce0ab8224a85401c892ff420c68c00388d /lib/Target/MSIL | |
parent | 1da8be226a1e30615e8235e2a1ab9c916d8a6293 (diff) | |
download | external_llvm-c2b443a698493d3f2fe6ce2d8e7798a659eb3aae.zip external_llvm-c2b443a698493d3f2fe6ce2d8e7798a659eb3aae.tar.gz external_llvm-c2b443a698493d3f2fe6ce2d8e7798a659eb3aae.tar.bz2 |
fix some casts that I improperly refactored, patch by Artur Pietrek!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSIL')
-rw-r--r-- | lib/Target/MSIL/MSILWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/MSIL/MSILWriter.cpp b/lib/Target/MSIL/MSILWriter.cpp index 8bd3c7b..dbfcdb7 100644 --- a/lib/Target/MSIL/MSILWriter.cpp +++ b/lib/Target/MSIL/MSILWriter.cpp @@ -235,7 +235,7 @@ bool MSILWriter::isZeroValue(const Value* V) { std::string MSILWriter::getValueName(const Value* V) { std::string Name; - if (const GlobalValue *GV = cast<GlobalValue>(V)) + if (const GlobalValue *GV = dyn_cast<GlobalValue>(V)) Name = Mang->getMangledName(GV); else { unsigned &No = AnonValueNumbers[V]; @@ -262,7 +262,7 @@ std::string MSILWriter::getLabelName(const std::string& Name) { std::string MSILWriter::getLabelName(const Value* V) { std::string Name; - if (const GlobalValue *GV = cast<GlobalValue>(V)) + if (const GlobalValue *GV = dyn_cast<GlobalValue>(V)) Name = Mang->getMangledName(GV); else { unsigned &No = AnonValueNumbers[V]; |