[PATCH] D41921: [Parse] Forward brace locations to TypeConstructExpr
Orivej Desh via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 12 16:12:59 PDT 2018
orivej added inline comments.
================
Comment at: lib/Sema/SemaInit.cpp:6034
TSInfo = S.Context.getTrivialTypeSourceInfo(Entity.getType(), Loc);
- SourceRange ParenOrBraceRange =
- (Kind.getKind() == InitializationKind::IK_DirectList)
- ? SourceRange(LBraceLoc, RBraceLoc)
- : Kind.getParenRange();
+ SourceRange ParenOrBraceRange = Kind.getParenOrBraceRange();
----------------
(Anchor for https://bugs.llvm.org/show_bug.cgi?id=38987)
Repository:
rC Clang
https://reviews.llvm.org/D41921
More information about the cfe-commits
mailing list