[llvm-commits] [llvm] r75894 - /llvm/trunk/lib/Target/MSIL/MSILWriter.cpp
Chris Lattner
sabre at nondot.org
Wed Jul 15 21:34:41 PDT 2009
Author: lattner
Date: Wed Jul 15 23:34:33 2009
New Revision: 75894
URL: http://llvm.org/viewvc/llvm-project?rev=75894&view=rev
Log:
fix some casts that I improperly refactored, patch by Artur Pietrek!
Modified:
llvm/trunk/lib/Target/MSIL/MSILWriter.cpp
Modified: llvm/trunk/lib/Target/MSIL/MSILWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSIL/MSILWriter.cpp?rev=75894&r1=75893&r2=75894&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSIL/MSILWriter.cpp (original)
+++ llvm/trunk/lib/Target/MSIL/MSILWriter.cpp Wed Jul 15 23:34:33 2009
@@ -235,7 +235,7 @@
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 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];
More information about the llvm-commits
mailing list