[PATCH] D41565: [Transforms] Support making mutable versions of new-format TBAA access tags
Artur Pilipenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 07:49:43 PST 2018
apilipenko added inline comments.
================
Comment at: llvm/trunk/lib/IR/MDBuilder.cpp:236
+MDNode *MDBuilder::createMutableTBAAAccessTag(MDNode *Tag) {
+ MDNode *BaseType = cast<MDNode>(Tag->getOperand(1));
+ MDNode *AccessType = cast<MDNode>(Tag->getOperand(1));
----------------
Typo getOperand(1) instead of getOperand(0). And the test doesn't catch this because in the test Base and Access types are always the same.
Repository:
rL LLVM
https://reviews.llvm.org/D41565
More information about the llvm-commits
mailing list