[PATCH] D70537: [clang] CGDebugInfo asserts `!DT.isNull()` when compiling with debug symbols

Paul Robinson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 2 10:52:41 PST 2019


probinson added a comment.

I guess first I'm confused about why the type would be undeduced in the first place, given that it is actually instantiated.
And if undeduced is correct, wouldn't we rather emit these with DW_TAG_unspecified_type?



================
Comment at: clang/test/CodeGenCXX/pr42710.cpp:2
+// RUN: %clang %s -DTYPE=auto -emit-llvm -S -g -o - -std=c++17
+// expected-no-diagnostics
+// RUN: %clang %s -DTYPE=int -emit-llvm -S -g -o - -std=c++17
----------------
I believe you would use `expected-no-diagnostics` only if you run clang with `-verify`.  So, please remove those two directives.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70537/new/

https://reviews.llvm.org/D70537





More information about the cfe-commits mailing list