File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -2511,7 +2511,12 @@ class ASTContext : public RefCountedBase<ASTContext> {
2511
2511
CharUnits getTypeSizeInChars (const Type *T) const ;
2512
2512
2513
2513
std::optional<CharUnits> getTypeSizeInCharsIfKnown (QualType Ty) const {
2514
+ #ifdef SYCLomatic_CUSTOMIZATION
2515
+ if (Ty->isIncompleteType () || Ty->isDependentType () ||
2516
+ Ty->isUndeducedType ())
2517
+ #else
2514
2518
if (Ty->isIncompleteType () || Ty->isDependentType ())
2519
+ #endif
2515
2520
return std::nullopt;
2516
2521
return getTypeSizeInChars (Ty);
2517
2522
}
Original file line number Diff line number Diff line change
1
+ // RUN: dpct --out-root %T %s --cuda-include-path="%cuda-path/include" > %T/auto_deduce_output.txt 2>&1 || true
2
+ // RUN: grep "dpct internal error" %T/auto_deduce_output.txt | wc -l > %T/wc_auto_deduce_output.txt || true
3
+ // RUN: FileCheck %s --match-full-lines --input-file %T/wc_auto_deduce_output.txt
4
+ // RUN: rm -rf %T
5
+
6
+ // CHECK: 0
7
+
8
+ __device__ void test_auto () {
9
+
10
+ auto tid = get_tid ();
11
+ }
You can’t perform that action at this time.
0 commit comments