"git@repo.hca.bsc.es:rferrer/llvm-epi-0.8.git" did not exist on "213159a6ee40471efec367828bd0ff8f5ccdb6d6"
[clang][CGStmt] fix crash on invalid asm statement
Clang is crashing on the following statement char var[9]; __asm__ ("" : "=r" (var) : "0" (var)); This is similar to existing test: crbug_999160_regtest The issue happens when EmitAsmStmt is trying to convert input to match output type length. However, that is not guaranteed to be successful all the time and if the statement itself is invalid like having an array type in the example, we should give a regular error message here instead of using assert(). Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D120596
Loading
Please register or sign in to comment