diff options
author | Reid Kleckner <rnk@google.com> | 2017-09-15 00:59:07 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-09-15 00:59:07 +0000 |
commit | 87288b98b66db3e13b998fa3d2befe9ed3e2922b (patch) | |
tree | 9be18e12ebda39fae597e369396601f67ba4c8b4 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 7f9c0ce1bb5e9e58b9e1bbafe182edd0ee760b39 (diff) | |
download | bcm5719-llvm-87288b98b66db3e13b998fa3d2befe9ed3e2922b.tar.gz bcm5719-llvm-87288b98b66db3e13b998fa3d2befe9ed3e2922b.zip |
[codeview] Use a type index of zero for static method "this" types
Otherwise VS won't show anything in the autos or watch window of static
methods.
llvm-svn: 313329
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 7e778c542c0..87aeb1f03dd 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -1561,7 +1561,7 @@ TypeIndex CodeViewDebug::lowerTypeMemberFunction(const DISubroutineType *Ty, ReturnTypeIndex = ReturnAndArgTypesRef.front(); ArgTypeIndices = ReturnAndArgTypesRef.drop_front(); } - TypeIndex ThisTypeIndex = TypeIndex::Void(); + TypeIndex ThisTypeIndex; if (!IsStaticMethod && !ArgTypeIndices.empty()) { ThisTypeIndex = ArgTypeIndices.front(); ArgTypeIndices = ArgTypeIndices.drop_front(); |