summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2012-11-19 21:17:20 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2012-11-19 21:17:20 +0000
commit097b0e9d6a8f2499617fe11059bdfbd7e136ad28 (patch)
treea610c0eab9acc62125e6f2168a2eb8f4be59a3b9 /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
parent1ab34b3ad579f43f915cc3ae5c5e2d80fdd7191b (diff)
downloadbcm5719-llvm-097b0e9d6a8f2499617fe11059bdfbd7e136ad28.tar.gz
bcm5719-llvm-097b0e9d6a8f2499617fe11059bdfbd7e136ad28.zip
Make AsmPrinter::EmitTTypeReference() more robust - put
the zero GV check inside, so we won't forget it at the caller side. llvm-svn: 168328
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
index 4ebb75b9b80..0bcb1b5cc8f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -696,11 +696,7 @@ void DwarfException::EmitTypeInfos(unsigned TTypeEncoding) {
const GlobalVariable *GV = *I;
if (VerboseAsm)
Asm->OutStreamer.AddComment("TypeInfo " + Twine(Entry--));
- if (GV)
- Asm->EmitTTypeReference(GV, TTypeEncoding);
- else
- Asm->OutStreamer.EmitIntValue(0,Asm->GetSizeOfEncodedValue(TTypeEncoding),
- 0);
+ Asm->EmitTTypeReference(GV, TTypeEncoding);
}
// Emit the Exception Specifications.
OpenPOWER on IntegriCloud