diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-29 18:02:48 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-29 18:02:48 +0000 |
| commit | 546ea7ea88965166e6d756c2012ede522bf12682 (patch) | |
| tree | b434c0b234daac5307e96fb003d6a7444ea5c666 /llvm/lib/VMCore/AsmWriter.cpp | |
| parent | a05721d34015561b7b0f35862194128ca72cd604 (diff) | |
| download | bcm5719-llvm-546ea7ea88965166e6d756c2012ede522bf12682.tar.gz bcm5719-llvm-546ea7ea88965166e6d756c2012ede522bf12682.zip | |
Implement review feedback
llvm-svn: 36564
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 656a7bed74e..ac68e8d32fb 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -926,8 +926,7 @@ void AssemblyWriter::printAlias(const GlobalAlias *GA) { assert(0 && "Invalid alias linkage"); } - const Constant *Aliasee = dyn_cast_or_null<Constant>(GA->getAliasee()); - assert(Aliasee && "Aliasee cannot be null"); + const Constant *Aliasee = GA->getAliasee(); if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(Aliasee)) { printType(GV->getType()); |

