[llvm-commits] [dragonegg] r131462 - /dragonegg/trunk/src/Convert.cpp

Duncan Sands baldrick at free.fr
Tue May 17 04:57:17 PDT 2011


Author: baldrick
Date: Tue May 17 06:57:17 2011
New Revision: 131462

URL: http://llvm.org/viewvc/llvm-project?rev=131462&view=rev
Log:
For some reason inline asm handling was not allowing an implicit
conversion for floating point types even though the implementation
can handle that.

Modified:
    dragonegg/trunk/src/Convert.cpp

Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=131462&r1=131461&r2=131462&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Tue May 17 06:57:17 2011
@@ -7489,8 +7489,7 @@
           }
         }
         if (OTy && OTy != OpTy) {
-          if (!(OTy->isIntegerTy() || OTy->isPointerTy()) ||
-              !(OpTy->isIntegerTy() || OpTy->isPointerTy())) {
+          if (!OTy->isSingleValueType() || !OpTy->isSingleValueType()) {
             error_at(gimple_location(stmt),
                      "unsupported inline asm: input constraint with a matching "
                      "output constraint of incompatible type!");





More information about the llvm-commits mailing list