llvm-project/clang/lib/Sema
NAKAMURA Takumi 44d4d9a4cb Don't capture DeclRefExpr::getNameInfo().getInfo(). It returns reference in temporary object.
DeclarationNameInfo::getInfo() returns reference, but DeclRefExpr::getNameInfo() returns temporary DeclarationNameInfo().

It triggered a local crash for me.

  Failing Tests (1):
      Clang :: SemaTemplate/instantiate-overload-candidates.cpp

  Assertion failed!
  Program: bin\clang.EXE
  File: clang/lib/Basic/SourceManager.cpp, Line 822
  Expression: 0 && "Invalid SLocOffset or bad function choice"

llvm-svn: 220841
2014-10-29 08:11:47 +00:00
..
AnalysisBasedWarnings.cpp Report when a function-try-block does not return a value on all control paths. Fixed PR14620. 2014-10-24 13:19:19 +00:00
AttributeList.cpp Automate attribute argument count semantic checking when there are variadic or optional arguments present. With this, the only time you should have to manually check attribute argument counts is when HasCustomParsing is set to true, or when you have variadic arguments that aren't really variadic (like ownership_holds and friends). 2014-07-31 16:37:04 +00:00
CMakeLists.txt Split off CUDA-specific Sema parts to a new file 2014-09-03 15:27:03 +00:00
CodeCompleteConsumer.cpp [C++11] Use 'nullptr'. Sema edition. 2014-05-26 06:22:03 +00:00
DeclSpec.cpp Add RestrictQualifierLoc to DeclaratorChunk::FunctionTypeInfo 2014-10-20 17:32:04 +00:00
DelayedDiagnostic.cpp Objective-C. Diagnose when property access is using declared 2014-06-16 17:25:41 +00:00
IdentifierResolver.cpp PR20769: Fix confusion when checking whether a prior default argument was in 2014-08-27 22:31:34 +00:00
JumpDiagnostics.cpp ms-inline-asm: Scope inline asm labels to functions 2014-09-22 02:21:54 +00:00
Makefile
MultiplexExternalSemaSource.cpp Add -Wunused-local-typedef, a warning that finds unused local typedefs. 2014-09-06 01:25:55 +00:00
Scope.cpp Revert r213437 2014-07-25 20:52:51 +00:00
ScopeInfo.cpp [C++11] Support for capturing of variable length arrays in lambda expression. 2014-08-28 04:28:19 +00:00
Sema.cpp Objective-C. revert patch for rdar://17554063. 2014-10-28 18:28:16 +00:00
SemaAccess.cpp Consolidate some note diagnostics 2014-05-28 12:20:14 +00:00
SemaAttr.cpp MS Compat: mark globals emitted in read-only sections const 2014-10-16 20:52:46 +00:00
SemaCUDA.cpp CUDA: mark the target of implicit intrinsics properly 2014-09-30 17:38:34 +00:00
SemaCXXScopeSpec.cpp Pass around CorrectionCandidateCallbacks as unique_ptrs so 2014-10-27 18:07:29 +00:00
SemaCast.cpp PR20227: materialize a temporary when dynamic_casting a class prvalue to a 2014-07-08 17:25:14 +00:00
SemaChecking.cpp patch to issue warning on comparing parameters with 2014-10-23 19:00:10 +00:00
SemaCodeComplete.cpp Avoid a crash after loading an #undef'd macro in code completion 2014-09-30 20:00:18 +00:00
SemaConsumer.cpp
SemaDecl.cpp Pass around CorrectionCandidateCallbacks as unique_ptrs so 2014-10-27 18:07:29 +00:00
SemaDeclAttr.cpp Add frontend support for __vectorcall 2014-10-24 17:42:17 +00:00
SemaDeclCXX.cpp c++11 patch to issue warning on missing 'override' on 2014-10-27 19:11:51 +00:00
SemaDeclObjC.cpp Pass around CorrectionCandidateCallbacks as unique_ptrs so 2014-10-27 18:07:29 +00:00
SemaExceptionSpec.cpp Add the initial TypoExpr AST node for delayed typo correction. 2014-10-27 18:07:20 +00:00
SemaExpr.cpp Start adding the infrastructure for handling TypoExprs. 2014-10-27 18:07:37 +00:00
SemaExprCXX.cpp Wire up LookupMemberExpr to use the new TypoExpr. 2014-10-27 18:07:46 +00:00
SemaExprMember.cpp Wire up LookupMemberExpr to use the new TypoExpr. 2014-10-27 18:07:46 +00:00
SemaExprObjC.cpp Objective-C. revert patch for rdar://17554063. 2014-10-28 18:28:16 +00:00
SemaFixItUtils.cpp PR17290: Use 'false' macro in fix-it hint for initializing a variable of type 2013-09-20 00:27:40 +00:00
SemaInit.cpp Pass around CorrectionCandidateCallbacks as unique_ptrs so 2014-10-27 18:07:29 +00:00
SemaLambda.cpp Pass around CorrectionCandidateCallbacks as unique_ptrs so 2014-10-27 18:07:29 +00:00
SemaLookup.cpp Add a callback for recovering using a typo correction. 2014-10-27 18:07:42 +00:00
SemaObjCProperty.cpp Objective-C [qoi]. When reporting that a property is not 2014-10-10 22:08:23 +00:00
SemaOpenMP.cpp Pass around CorrectionCandidateCallbacks as unique_ptrs so 2014-10-27 18:07:29 +00:00
SemaOverload.cpp Pass around CorrectionCandidateCallbacks as unique_ptrs so 2014-10-27 18:07:29 +00:00
SemaPseudoObject.cpp Objective-C. Prevents a crash generating AST for a 2014-09-15 21:19:39 +00:00
SemaStmt.cpp Sema: address post-commit review comment 2014-10-17 17:20:33 +00:00
SemaStmtAsm.cpp ms-inline-asm: Correctly mark MS inline ASM labels as used 2014-10-08 17:28:34 +00:00
SemaStmtAttr.cpp Allow constant expressions in pragma loop hints. 2014-10-12 20:46:07 +00:00
SemaTemplate.cpp Pass around CorrectionCandidateCallbacks as unique_ptrs so 2014-10-27 18:07:29 +00:00
SemaTemplateDeduction.cpp PR21246: DebugInfo: Emit the appropriate type (cv qualifiers, reference-ness, etc) for non-type template parameters 2014-10-16 04:21:25 +00:00
SemaTemplateInstantiate.cpp Revert r219977, "Re-commit r217995 and follow-up patches (r217997, r218011, r218053). These were" 2014-10-17 12:48:37 +00:00
SemaTemplateInstantiateDecl.cpp Prune CRLF. 2014-10-27 12:37:26 +00:00
SemaTemplateVariadic.cpp Pass around CorrectionCandidateCallbacks as unique_ptrs so 2014-10-27 18:07:29 +00:00
SemaType.cpp Add frontend support for __vectorcall 2014-10-24 17:42:17 +00:00
TreeTransform.h Don't capture DeclRefExpr::getNameInfo().getInfo(). It returns reference in temporary object. 2014-10-29 08:11:47 +00:00
TypeLocBuilder.cpp [C++11] Use 'nullptr'. Sema edition. 2014-05-26 06:22:03 +00:00
TypeLocBuilder.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00