[polly] r240312 - Handle zero-element ArrayRefs in CUDA run-time debug builder
Tobias Grosser
tobias at grosser.es
Mon Jun 22 11:45:23 PDT 2015
Author: grosser
Date: Mon Jun 22 13:45:23 2015
New Revision: 240312
URL: http://llvm.org/viewvc/llvm-project?rev=240312&view=rev
Log:
Handle zero-element ArrayRefs in CUDA run-time debug builder
Modified:
polly/trunk/include/polly/CodeGen/RuntimeDebugBuilder.h
Modified: polly/trunk/include/polly/CodeGen/RuntimeDebugBuilder.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/RuntimeDebugBuilder.h?rev=240312&r1=240311&r2=240312&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/RuntimeDebugBuilder.h (original)
+++ polly/trunk/include/polly/CodeGen/RuntimeDebugBuilder.h Mon Jun 22 13:45:23 2015
@@ -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.
More information about the llvm-commits
mailing list