Skip to content

Commit ed46392

Browse files
committed
Reverting the files.
1 parent fcd42b1 commit ed46392

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

llvm-spirv/lib/SPIRV/SPIRVToOCL.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,8 @@ llvm::createSPIRVBIsLoweringPass(Module &M,
537537
case SPIRV::BIsRepresentation::SPIRVFriendlyIR:
538538
// nothing to do, already done
539539
return nullptr;
540+
default:
541+
llvm_unreachable("Unsupported built-ins representation");
542+
return nullptr;
540543
}
541-
llvm_unreachable("Unsupported built-ins representation");
542-
return nullptr;
543544
}

llvm-spirv/lib/SPIRV/SPIRVToOCL.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SPIRVToOCL : public ModulePass, public InstVisitor<SPIRVToOCL> {
5151
SPIRVToOCL(char &ID) : ModulePass(ID), M(nullptr), Ctx(nullptr) {}
5252

5353
public:
54-
virtual bool runOnModule(Module &M) override = 0;
54+
virtual bool runOnModule(Module &M) = 0;
5555

5656
void visitCallInst(CallInst &CI);
5757

llvm-spirv/lib/SPIRV/SPIRVWriter.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2529,14 +2529,12 @@ SPIRVValue *LLVMToSPIRV::transIntrinsicInst(IntrinsicInst *II,
25292529
MemSetInst *MSI = cast<MemSetInst>(II);
25302530
Value *Val = MSI->getValue();
25312531
if (!isa<Constant>(Val)) {
2532-
assert(false &&
2533-
"Can't translate llvm.memset with non-const `value` argument");
2532+
assert(!"Can't translate llvm.memset with non-const `value` argument");
25342533
return nullptr;
25352534
}
25362535
Value *Len = MSI->getLength();
25372536
if (!isa<ConstantInt>(Len)) {
2538-
assert(false &&
2539-
"Can't translate llvm.memset with non-const `length` argument");
2537+
assert(!"Can't translate llvm.memset with non-const `length` argument");
25402538
return nullptr;
25412539
}
25422540
uint64_t NumElements = static_cast<ConstantInt *>(Len)->getZExtValue();

llvm-spirv/lib/SPIRV/libSPIRV/SPIRVModule.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,10 @@ class SPIRVModule {
504504
return SPIRVEIS_Debug;
505505
case DebugInfoEIS::OpenCL_DebugInfo_100:
506506
return SPIRVEIS_OpenCL_DebugInfo_100;
507+
default:
508+
assert(false && "Unexpected debug info EIS!");
509+
return SPIRVEIS_Debug;
507510
}
508-
assert(false && "Unexpected debug info EIS!");
509-
return SPIRVEIS_Debug;
510511
}
511512

512513
BIsRepresentation getDesiredBIsRepresentation() const {

0 commit comments

Comments
 (0)