]> granicus.if.org Git - llvm/commitdiff
[WebAssembly] Fix use of SDNodeFlags after API change in r301803
authorDerek Schuff <dschuff@google.com>
Mon, 1 May 2017 16:49:39 +0000 (16:49 +0000)
committerDerek Schuff <dschuff@google.com>
Mon, 1 May 2017 16:49:39 +0000 (16:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301811 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssemblyInstrMemory.td

index f0c49f4371a8947bcc71881d9aa8a82496cc89a3..365b327190ec1f6be0e0370e7e56efebf34d331d 100644 (file)
@@ -26,7 +26,7 @@
 // offset for an add that needs wrapping.
 def regPlusImm : PatFrag<(ops node:$addr, node:$off),
                          (add node:$addr, node:$off),
-                         [{ return N->getFlags()->hasNoUnsignedWrap(); }]>;
+                         [{ return N->getFlags().hasNoUnsignedWrap(); }]>;
 
 // Treat an 'or' node as an 'add' if the or'ed bits are known to be zero.
 def or_is_add : PatFrag<(ops node:$lhs, node:$rhs), (or node:$lhs, node:$rhs),[{
@@ -47,7 +47,7 @@ def or_is_add : PatFrag<(ops node:$lhs, node:$rhs), (or node:$lhs, node:$rhs),[{
 def regPlusGA : PatFrag<(ops node:$addr, node:$off),
                         (add node:$addr, node:$off),
                         [{
-  return N->getFlags()->hasNoUnsignedWrap();
+  return N->getFlags().hasNoUnsignedWrap();
 }]>;
 
 // We don't need a regPlusES because external symbols never have constant