aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaTargetMachine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-02 03:54:43 +0000
committerChris Lattner <sabre@nondot.org>2005-03-02 03:54:43 +0000
commitded3613fef825e45f0fcadbefc60df151d72abc9 (patch)
tree7e3c0f3b16db0be7e5499003d045f33237ddbf31 /lib/Target/Alpha/AlphaTargetMachine.cpp
parente4666594d091e8fb540071ed52a33fc182fc525c (diff)
Fix a nasty order of evaluation bug that Gabor Greif ran into. Here's an
explanation from IRC: |sabre| I think it's an order of evaluation thing |sabre| for me, the RHS of the assignment is evaluated first |sabre| getTypeDescription checks to see if ConcreteTypeDescription[Ty] contains anything |sabre| since it doesn't, it computes and returns the value |sabre| this gets put into the map. |sabre| For you, the LHS is evaluated first. |sabre| Map[Ty] (aka ConcreteTypeDescriptions[Ty]) inserts an empty string into the map, returning a reference |sabre| getTypeDesc then sees the empty string in the map |sabre| and returns it |sabre| bork :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions