================
@@ -13374,6 +13374,62 @@ void Sema::checkNonTrivialCUnion(QualType QT,
SourceLocation Loc,
.visit(QT, nullptr, false);
}
+bool Sema::GloballyUniqueObjectMightBeAccidentallyDuplicated(
+ const VarDecl *Dcl) {
+ if (!Dcl || !getLangOpts().CPlusPlus)
----------------
DKLoehr wrote:
It shouldn't be possible, but I figured it was better to check it explicitly to
be safe.
https://github.com/llvm/llvm-project/pull/117622
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits