forked from OSchip/llvm-project
Handle zero-element ArrayRefs in CUDA run-time debug builder
llvm-svn: 240312
This commit is contained in:
parent
09b2c890af
commit
967c1e0b93
|
@ -105,8 +105,10 @@ private:
|
|||
createGPUVAPrinter(
|
||||
Builder, Values, Array[0], " ",
|
||||
llvm::ArrayRef<llvm::Value *>(&Array[1], Array.size() - 1), args...);
|
||||
else
|
||||
else if (Array.size() == 1)
|
||||
createGPUVAPrinter(Builder, Values, Array[0], args...);
|
||||
else
|
||||
createGPUVAPrinter(Builder, Values, args...);
|
||||
}
|
||||
|
||||
/// @brief Get (and possibly insert) a vprintf declaration into the module.
|
||||
|
|
Loading…
Reference in New Issue