summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGAtomic.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-03-09 00:18:53 +0000
committerVedant Kumar <vsk@apple.com>2017-03-09 00:18:53 +0000
commit3dea91fec6354451d36c3afc31fd4ac8674d8b5a (patch)
treee411288da420a579eb85940f650679df995382c0 /clang/lib/CodeGen/CGAtomic.cpp
parent5e5d8672a7d648417d50e2cde81659ebda2c8161 (diff)
downloadbcm5719-llvm-3dea91fec6354451d36c3afc31fd4ac8674d8b5a.tar.gz
bcm5719-llvm-3dea91fec6354451d36c3afc31fd4ac8674d8b5a.zip
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
Diffstat (limited to 'clang/lib/CodeGen/CGAtomic.cpp')
-rw-r--r--clang/lib/CodeGen/CGAtomic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGAtomic.cpp b/clang/lib/CodeGen/CGAtomic.cpp
index 28e20b53d65..9287e46127b 100644
--- a/clang/lib/CodeGen/CGAtomic.cpp
+++ b/clang/lib/CodeGen/CGAtomic.cpp
@@ -1181,7 +1181,7 @@ RValue AtomicInfo::convertAtomicTempToRValue(Address addr,
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(),
OpenPOWER on IntegriCloud