[PATCH] D68117: [DWARF-5] Support for C++11 defaulted, deleted member functions.
Sourabh Singh Tomar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 8 15:45:27 PDT 2019
SouraVX marked 3 inline comments as done.
SouraVX added inline comments.
================
Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:1619
+ else {
+ SPFlags |= llvm::DISubprogram::SPFlagNotDefaulted;
+ }
----------------
Previously SPFlagNotDefaulted is setted to SPFlagZero as it's normal value is, to save a bit. Hence in generated IR this flag is not getting set. instead 0 is getting emitted.
As a result, test cases checking DISPFlagNotDefaulted in IR are failing.
================
Comment at: clang/test/CodeGenCXX/debug-info-not-defaulted.cpp:9
+
+// ATTR: DISubprogram(name: "not_defaulted", {{.*}}, flags: DIFlagPublic | DIFlagPrototyped, spFlags: DISPFlagNotDefaulted
+// ATTR: DISubprogram(name: "not_defaulted", {{.*}}, flags: DIFlagPublic | DIFlagPrototyped, spFlags: DISPFlagNotDefaulted
----------------
This test case is failing, checking DISPFlagNotDefaulted.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68117/new/
https://reviews.llvm.org/D68117
More information about the llvm-commits
mailing list