Skip to content

Commit 2b4bee3

Browse files
asudarsaagainull
authored andcommitted
Remove assert statement to allow for multiple decorations on a given pointer (#1952)
Signed-off-by: Arvind Sudarsanam <[email protected]> Original commit: KhronosGroup/SPIRV-LLVM-Translator@373d46c
1 parent 61a25a4 commit 2b4bee3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm-spirv/lib/SPIRV/SPIRVReader.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,10 +1257,8 @@ static void replaceOperandWithAnnotationIntrinsicCallResult(Function *F,
12571257
for (auto *Use : BV->users()) {
12581258
if (auto *II = dyn_cast<IntrinsicInst>(Use)) {
12591259
if (II->getIntrinsicID() == Intrinsic::ptr_annotation &&
1260-
II->getType() == BV->getType()) {
1261-
assert(CR == nullptr && "Multiple annotation created for same value");
1260+
II->getType() == BV->getType())
12621261
CR = II;
1263-
}
12641262
}
12651263
}
12661264
return CR ? true : false;

0 commit comments

Comments
 (0)