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 | 2d84e84236d6b68ddb39085539b4a4896bd803ac (patch) | |
tree | 06d1158c5c17c800c2a65ff2c6d7b0c347f46f63 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | b7aa592c19703492925e346317f36192b4669c4b (diff) | |
download | bcm5719-llvm-2d84e84236d6b68ddb39085539b4a4896bd803ac.tar.gz bcm5719-llvm-2d84e84236d6b68ddb39085539b4a4896bd803ac.zip |
Thread a SourceLocation into the EmitCheck for "load_invalid_value". This occurs
when scalars are loaded / undergo lvalue-to-rvalue conversion.
llvm-svn: 191808
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index b66a8492840..4ae0bdd97ce 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/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. |