2
0
Эх сурвалжийг харах

[spirv] Remove last usage of LiteralTypeVisitor from SPIRVEmitter

Ehsan Nasiri 6 жил өмнө
parent
commit
a1e4121da8

+ 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 *SPIRVEmitter::doExpr(const Expr *expr) {
   SpirvInstruction *result = nullptr;
   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();
   expr = expr->IgnoreParens();
 
 
   if (const auto *declRefExpr = dyn_cast<DeclRefExpr>(expr)) {
   if (const auto *declRefExpr = dyn_cast<DeclRefExpr>(expr)) {