瀏覽代碼

[spirv] Remove last usage of LiteralTypeVisitor from SPIRVEmitter

Ehsan Nasiri 6 年之前
父節點
當前提交
a1e4121da8
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      tools/clang/lib/SPIRV/SPIRVEmitter.cpp

+ 0 - 6
tools/clang/lib/SPIRV/SPIRVEmitter.cpp

@@ -789,12 +789,6 @@ void SPIRVEmitter::doStmt(const Stmt *stmt,
 
 SpirvInstruction *SPIRVEmitter::doExpr(const Expr *expr) {
   SpirvInstruction *result = nullptr;
-
-  // Provide a hint to the typeTranslator that if a literal is discovered, its
-  // intended usage is as this expression type.
-  // TODO(ehsan): Literal type handling must be fixed.
-  TypeTranslator::LiteralTypeHint hint(typeTranslator, expr->getType());
-
   expr = expr->IgnoreParens();
 
   if (const auto *declRefExpr = dyn_cast<DeclRefExpr>(expr)) {