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/CGExprAgg.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/CGExprAgg.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprAgg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index 8268c86c9a1..9d0f3a9661a 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/lib/CodeGen/CGExprAgg.cpp @@ -208,7 +208,7 @@ void AggExprEmitter::EmitAggLoadOfLValue(const Expr *E) { // If the type of the l-value is atomic, then do an atomic load. if (LV.getType()->isAtomicType()) { - CGF.EmitAtomicLoad(LV, Dest); + CGF.EmitAtomicLoad(LV, E->getExprLoc(), Dest); return; } @@ -1010,7 +1010,7 @@ static bool isSimpleZero(const Expr *E, CodeGenFunction &CGF) { void -AggExprEmitter::EmitInitializationToLValue(Expr* E, LValue LV) { +AggExprEmitter::EmitInitializationToLValue(Expr *E, LValue LV) { QualType type = LV.getType(); // FIXME: Ignore result? // FIXME: Are initializers affected by volatile? |