"clang/git@repo.hca.bsc.es:rferrer/llvm-epi-0.8.git" did not exist on "79eb5469e04aa8906262619d1f7a3a71ba5dbd94"
Split RequireCompleteType into a function that actually requires that the type
is complete (with an error produced if not) and a function that merely queries whether the type is complete. Either way we'll trigger instantiation if necessary, but only the former will diagnose and recover from missing module imports. The intent of this change is to prevent a class of bugs where code would call RequireCompleteType(..., 0) and then ignore the result. With modules, we must check the return value and use it to determine whether the definition of the type is visible. This also fixes a debug info quality issue: calls to isCompleteType do not trigger the emission of debug information for a type in limited-debug-info mode. This allows us to avoid emitting debug information for type definitions in more cases where we believe it is safe to do so. llvm-svn: 256049
Loading
Please register or sign in to comment