[PATCH] D58147: [CodeGen] Fix calling llvm.var.annotation outside of a basic block.

Volodymyr Sapsai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 12 14:08:47 PST 2019


vsapsai added a comment.

I've checked and seems like other places where we `EmitAnnotationCall` should be safe. We do that for globals, function parameters, fields (`FieldDecl`) and early return isn't applicable in those cases. We can do that for any expressions with `__builtin_annotation` but that was already working correctly and I've just added a test.


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

https://reviews.llvm.org/D58147





More information about the cfe-commits mailing list