summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-06-02 18:51:24 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-06-02 18:51:24 +0000
commitb68f32f0cfafc65da323511948aef8dedf6eceaa (patch)
tree6df4d21738956e0f1655d86fae76609b79daf759 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent1cc17a3e7c779353cde2baa5ffe6d2fd81b50a88 (diff)
downloadbcm5719-llvm-b68f32f0cfafc65da323511948aef8dedf6eceaa.tar.gz
bcm5719-llvm-b68f32f0cfafc65da323511948aef8dedf6eceaa.zip
[CodeView] Use None instead of Void if there is no subprogram
llvm-svn: 271566
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index ba0c7ca80b5..34b322fd178 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -126,7 +126,7 @@ TypeIndex CodeViewDebug::getFuncIdForSubprogram(const DISubprogram *SP) {
// It's possible to ask for the FuncId of a function which doesn't have a
// subprogram: inlining a function with debug info into a function with none.
if (!SP)
- return TypeIndex::Void();
+ return TypeIndex::None();
// Check if we've already translated this subprogram.
auto I = TypeIndices.find(SP);
OpenPOWER on IntegriCloud