Simplify expression that was explicitly naming an operator overload in a call.
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 21 Apr 2014 20:43:51 +0000 (20:43 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 21 Apr 2014 20:43:51 +0000 (20:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206788 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/GlobalOpt.cpp

index 1a510cf4db57fafc3cc30dd37b5ff3d3e69efd7d..3e728b2936a0f9573e1f17e22173ae76358e7eff 100644 (file)
@@ -2308,7 +2308,7 @@ public:
   }
 
   void setVal(Value *V, Constant *C) {
-    ValueStack.back()->operator[](V) = C;
+    (*ValueStack.back())[V] = C;
   }
 
   const DenseMap<Constant*, Constant*> &getMutatedMemory() const {