commit | 3dea91fec6354451d36c3afc31fd4ac8674d8b5a | [log] [tgz] |
---|---|---|
author | Vedant Kumar <vsk@apple.com> | Thu Mar 09 00:18:53 2017 +0000 |
committer | Vedant Kumar <vsk@apple.com> | Thu Mar 09 00:18:53 2017 +0000 |
tree | e411288da420a579eb85940f650679df995382c0 | |
parent | 5e5d8672a7d648417d50e2cde81659ebda2c8161 [diff] [blame] |
Revert "[ubsan] Detect UB loads from bitfields" This reverts commit r297298. It breaks the self-host on this bot: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/builds/962/steps/build%20clang%2Fubsan/logs/stdio llvm-svn: 297331
diff --git a/clang/lib/CodeGen/CGAtomic.cpp b/clang/lib/CodeGen/CGAtomic.cpp index 28e20b5..9287e46 100644 --- a/clang/lib/CodeGen/CGAtomic.cpp +++ b/clang/lib/CodeGen/CGAtomic.cpp
@@ -1181,7 +1181,7 @@ if (LVal.isBitField()) return CGF.EmitLoadOfBitfieldLValue( LValue::MakeBitfield(addr, LVal.getBitFieldInfo(), LVal.getType(), - LVal.getAlignmentSource()), loc); + LVal.getAlignmentSource())); if (LVal.isVectorElt()) return CGF.EmitLoadOfLValue( LValue::MakeVectorElt(addr, LVal.getVectorIdx(), LVal.getType(),