diff options
-rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index dcea1a529ee..4512f702e7e 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -7442,7 +7442,6 @@ public: /// Emit SPIR specific metadata: OpenCL and SPIR version. void SPIRTargetCodeGenInfo::emitTargetMD(const Decl *D, llvm::GlobalValue *GV, CodeGen::CodeGenModule &CGM) const { - assert(CGM.getLangOpts().OpenCL && "SPIR is only for OpenCL"); llvm::LLVMContext &Ctx = CGM.getModule().getContext(); llvm::Type *Int32Ty = llvm::Type::getInt32Ty(Ctx); llvm::Module &M = CGM.getModule(); |