[all-commits] [llvm/llvm-project] be2147: Remove reference type when checking const structs
Richard Trieu via All-commits
all-commits at lists.llvm.org
Fri Jan 28 13:22:14 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: be2147db054ec096199d1251bfab9065c7e0f29b
https://github.com/llvm/llvm-project/commit/be2147db054ec096199d1251bfab9065c7e0f29b
Author: Weverything <rtrieu at google.com>
Date: 2022-01-28 (Fri, 28 Jan 2022)
Changed paths:
M clang/lib/CodeGen/CGExprConstant.cpp
A clang/test/CodeGenCXX/merge-all-constants-references.cpp
Log Message:
-----------
Remove reference type when checking const structs
ConstStructBuilder::Finalize in CGExprConstant.ccp assumes that the
passed in QualType is a RecordType. In some instances, the type is a
reference to a RecordType and the reference needs to be removed first.
Differential Revision: https://reviews.llvm.org/D117376
More information about the All-commits
mailing list