diff options
-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]; |