summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-16 04:34:33 +0000
committerChris Lattner <sabre@nondot.org>2009-07-16 04:34:33 +0000
commitefeba80e740cbf9d8bb960f4cea2ce8cf0117120 (patch)
treeba656a5244b90b47425aeca3cbc88018cd27fb9f /llvm/lib
parentb825dd3a31b3a6ed65b30404d268d2e6f0b2d51e (diff)
downloadbcm5719-llvm-efeba80e740cbf9d8bb960f4cea2ce8cf0117120.tar.gz
bcm5719-llvm-efeba80e740cbf9d8bb960f4cea2ce8cf0117120.zip
fix some casts that I improperly refactored, patch by Artur Pietrek!
llvm-svn: 75894
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/MSIL/MSILWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/MSIL/MSILWriter.cpp b/llvm/lib/Target/MSIL/MSILWriter.cpp
index 8bd3c7bc22d..dbfcdb7207b 100644
--- a/llvm/lib/Target/MSIL/MSILWriter.cpp
+++ b/llvm/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];
OpenPOWER on IntegriCloud