diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2013-10-02 02:29:49 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2013-10-02 02:29:49 +0000 |
| commit | 4ee7dc2369c1f0257a73b2e83a7d38fdebdd9176 (patch) | |
| tree | 108032a1d8a135f4f643b7d47226fe526a832202 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 7453624b98817f06d28ed2abe39c98805cfec623 (diff) | |
| download | clang-4ee7dc2369c1f0257a73b2e83a7d38fdebdd9176.tar.gz clang-4ee7dc2369c1f0257a73b2e83a7d38fdebdd9176.tar.bz2 clang-4ee7dc2369c1f0257a73b2e83a7d38fdebdd9176.tar.xz | |
Thread a SourceLocation into the EmitCheck for "load_invalid_value". This occurs
when scalars are loaded / undergo lvalue-to-rvalue conversion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index b66a849284..4ae0bdd97c 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -238,7 +238,7 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) { DI->EmitFunctionEnd(Builder); } - EmitFunctionEpilog(*CurFnInfo, EmitRetDbgLoc); + EmitFunctionEpilog(*CurFnInfo, EmitRetDbgLoc, EndLoc); EmitEndEHSpec(CurCodeDecl); assert(EHStack.empty() && @@ -591,7 +591,8 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, if (LambdaThisCaptureField) { // If this lambda captures this, load it. LValue ThisLValue = EmitLValueForLambdaField(LambdaThisCaptureField); - CXXThisValue = EmitLoadOfLValue(ThisLValue).getScalarVal(); + CXXThisValue = EmitLoadOfLValue(ThisLValue, + SourceLocation()).getScalarVal(); } } else { // Not in a lambda; just use 'this' from the method. |
