Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CGExprConstant] stop calling into ConstExprEmitter for Reference typ…
…e destinations (#70366) Fixes a bug introduced by commit b54294e ("[clang][ConstantEmitter] have tryEmitPrivate[ForVarInit] try ConstExprEmitter fast-path first") In the added test case, the QualType is a LValueReferenceType. LValueReferenceType 0x558412998d90 'const char (&)[41]' `-ParenType 0x558412998d30 'const char[41]' sugar `-ConstantArrayType 0x558412998cf0 'const char[41]' 41 `-QualType 0x55841294c271 'const char' const `-BuiltinType 0x55841294c270 'char' Fixes: #69979 (cherry picked from commit d9b15b068d19089f72fc0d7dc59ed1d6d77125dc)
- Loading branch information