efriedma added a comment.

I think the issue is that you're calling EmitPointerWithAlignment() on the 
argument, then calling EmitScalarExpr on the same argument.  Essentially, 
emitting the argument twice.  If emitting the argument has side-effects, that 
will cause an issue.  Sorry, should have spotted that while reviewing. Should 
be straightforward to fix, though; just make CheckAtomicAlignment return the 
computed pointer.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143813/new/

https://reviews.llvm.org/D143813

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to