diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-06-27 21:19:48 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-06-27 21:19:48 +0000 |
commit | c24e2fb1fb7e688205e0ed5be8082a467a9353f9 (patch) | |
tree | 4181abf9483699d62c793001fc6f4b5b18f30e0e /clang/lib/CodeGen/CGValue.h | |
parent | 090f345522359e8469ddca2d905918f8c6691e44 (diff) | |
download | bcm5719-llvm-c24e2fb1fb7e688205e0ed5be8082a467a9353f9.tar.gz bcm5719-llvm-c24e2fb1fb7e688205e0ed5be8082a467a9353f9.zip |
Propagate lvalue alignment into bitfields. Per report on cfe-dev.
llvm-svn: 159295
Diffstat (limited to 'clang/lib/CodeGen/CGValue.h')
-rw-r--r-- | clang/lib/CodeGen/CGValue.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGValue.h b/clang/lib/CodeGen/CGValue.h index ac704e7dca4..dd9208f9138 100644 --- a/clang/lib/CodeGen/CGValue.h +++ b/clang/lib/CodeGen/CGValue.h @@ -153,7 +153,7 @@ class LValue { private: void Initialize(QualType Type, Qualifiers Quals, - CharUnits Alignment = CharUnits(), + CharUnits Alignment, llvm::MDNode *TBAAInfo = 0) { this->Type = Type; this->Quals = Quals; @@ -295,12 +295,12 @@ public: /// access. static LValue MakeBitfield(llvm::Value *BaseValue, const CGBitFieldInfo &Info, - QualType type) { + QualType type, CharUnits Alignment) { LValue R; R.LVType = BitField; R.V = BaseValue; R.BitFieldInfo = &Info; - R.Initialize(type, type.getQualifiers()); + R.Initialize(type, type.getQualifiers(), Alignment); return R; } |