diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-12-19 00:26:58 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-12-19 00:26:58 +0000 |
commit | 39b685e4d13c4c490019f1a10ecf7f9fde7a8f89 (patch) | |
tree | 8a6afdbb69b54870264bb27ec09246bb0a291f38 /clang/lib/CodeGen/CGExpr.cpp | |
parent | ed74db7cd5b40f922e806331c622e223b6984311 (diff) | |
download | bcm5719-llvm-39b685e4d13c4c490019f1a10ecf7f9fde7a8f89.tar.gz bcm5719-llvm-39b685e4d13c4c490019f1a10ecf7f9fde7a8f89.zip |
Make sure CodeGen uses a value of the correct type as the result of
of assignment to a bool bitfield. PR14638.
llvm-svn: 170480
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index a36d4ee9f8d..8440eded839 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -1401,7 +1401,7 @@ void CodeGenFunction::EmitStoreThroughBitfieldLValue(RValue Src, LValue Dst, ResultVal = Builder.CreateIntCast(ResultVal, ResLTy, Info.IsSigned, "bf.result.cast"); - *Result = ResultVal; + *Result = EmitFromMemory(ResultVal, Dst.getType()); } } |